3 Replies Latest reply on Jul 24, 2011 6:26 AM by wendy888

    set specific flex DataGrid column datafield value

    anandbk

      Hi Everyone,

       

      Can anyone please tell me how to set the datafield of specific column of datagrid with new value.

       

      Ex:

      MXML:

       

      <mx:DataGrid id="statusGrid" dataProvider="{arrColl}" width="25%" height="62%">
              <mx:columns>
                  <mx:DataGridColumn dataField="Status"/>

                   <mx:DataGridColumn dataField="Property"/>

           </mx:columns>
      </mx:DataGrid>

       

      Here dataField values are set from dataprovider.

       

      But I want to change/set the datafield for 2nd column with new field of arrColl () detaprovider from Actionscript dynamically when flex page loads. Can anyone please help me in this regard ?

       

       

       

      Thanks,

      Anand.