Validate Data in DataGrid

itemEditBegin – Fired when you click on an editable cell of the datagrid (also when the editedItemPosition is set on an editable DataGrid)

itemEditBeginning – Fired when the mouse is released

itemEditEnd – Fired when the edit is committed / editor is destroyed there by terminating the edit session.

1
2
3
4
5
6
7
8
9
    <mx:DataGrid editable=”true” id=”datagrid” x=”105″ y=”85″ height=”176″ width=”317″ dataProvider=”{arr}itemEditEnd=”doValidation(event)>
    <mx:columns>
    <mx:DataGridColumn headerText=”Data” dataField=”disp” editable=”false”/>
    <mx:DataGridColumn headerText=”Available” dataField=”value” editable=”false”/>
    <!– itemEditor is set to our class CustomNumericStepper. Always remember to set the editorDataField to the dataField on which the operation is performed–>
    <mx:DataGridColumn headerText=”Order Qty” dataField=”order” itemEditor=”CustomNumericStepper” editorDataField=”value”/>
 
    </mx:columns>
    </mx:DataGrid>

source http://blog.flexgeek.in