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>