Hi,

I'm having a hard time figuring out how to set the column widths of a
DataGrid which is constrained inside its container (width="100%"
height="100%"), has two locked columns (lockedColumnCount="2"), and
which I force to scroll horizontally (horizontalScrollPolicy="on").

The DataGridColumn widths are systematically ignored (columns are all
scrunched up within the boundaries of the outside container) and they
take up their default width (100) if I set minWidth to a random value
(even if it's greater than 100!).

I'd appreciate any help. Here's a piece of the code (there's not much
more...):

<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; width="100 %"
height="100 %">
    <mx:DataGrid width="100%" height="100%"
                 lockedColumnCount="2" horizontalScrollPolicy="on"
variableRowHeight="true">
        <mx:columns>
            <mx:DataGridColumn headerText="Start Date"
dataField="TBD" minWidth="200" resizable="false" />
            <mx:DataGridColumn headerText="End Date"
dataField="TBD"minWidth="50" resizable="false" />
            <mx:DataGridColumn headerText="Risk"
dataField="TBD"minWidth="50" />
...

Thanks, Chris.

Reply via email to