Lock datagrid column width

13 sec read

In my datagrid, even when I set the width of some columns explicitly, they always change in an unpredictable way when I (1) resize my window (2) minimize and maximize the window. I finally find the cause: it’s because I used “minWidth” in a column I don’t want to lock. Here is the code which causes the problem. Removing minWidth will fix it.

<mx:DataGrid width="100%">
    <mx:DataGridColumn id="c1" width="50" />
    <mx:DataGridColumn id="c2" minWidth="150" /> <!-- remove minWidth -->
    <mx:DataGridColumn id="c3" width="60" />
</mx:DataGrid>


Receive email notification via email 博客有新内容通知我
文献鸟,永远不错过新文献!

Don't want to miss new papers in your field? Check out Stork we developed:


How much money did I make from an app?

Undoubtedly some people are very successful in making money by developing a smartphone app. Back in 2012 I developed an app called “Handbook of...
Xu Cui
27 sec read

Handy programs to visualize NIRS data (2): plotTopoMap

Often you need to view the spatial pattern of activation as in the example below. plotTopoMap allows you to do that. It probably only...
Xu Cui
37 sec read

Flash 3D video demo

Racer Ostrova Zombie
Xu Cui
0 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *