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>



写作助手,把中式英语变成专业英文


Want to receive new post notification? 有新文章通知我

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 Brain” which is a collected resources of brain anatomy, function and diseases. I put the app i
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 works for Hitachi devices where the spatial relationship between channels are known. In the above example, the activ
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 *