2 Replies Latest reply on May 6, 2010 9:39 AM by Prabh Singh

    Access ItemEditor in Datagrid

    Prabh Singh Level 1



      I have a DataGrid in which one particular column is editable. The Column looks like this -


      <mx:DataGridColumn id="AgeCol" headerText="Age" headerWordWrap="true" editable="true" dataField="Age" headerStyleName="headerCustomStyle" >
                              <mx:TextInput  restrict="0-9" text="{data.Age}"/>


      I wish to access the textInput in the column to be editable or not based on a certain condition.


      I tried making the entire coumn aditable but it does not affect the editable state of the TextInput.


      (dgResources.columns[3] as DataGridColumn).editable = false;


      How do I go about with that ?


      Thanks in advance.