1 Reply Latest reply on Feb 8, 2011 11:09 PM by Flex harUI

    Change DataGrid colomn width runtime

    Bhushan Phalak

      I have using the resizable DataGrid in my application. can i change the width of the colomn at run time.

      <mx:HBox width="100%" height="100%">
                      <mx:DataGrid id="srcgrid" width="100%" height="100%" dataProvider="{dataProvider}" selectedIndex="{_selectedIndex}" >
                          <mx:columns>
                              <mx:DataGridColumn rendererIsEditor="true" headerText="Datum" dataField="report_date" width="0.2" />   
                              <mx:DataGridColumn headerText="Onderwerp" dataField="toSubject" width="0.4"/>                       
                              <mx:DataGridColumn headerText="Status" dataField="openExpireStatus" id="idStatus" width="0.4" />
                          </mx:columns>
                      </mx:DataGrid>
      </mx:HBox>