I have a datagrid, i need a column which accepts only numerical data and maximum 12 characters.
what i have done is
<mx:DataGridColumn id="limitAmount" dataField="amount" width="120"
<mx:TextInput backgroundAlpha="0" width="100%" height="100%" maxChars="12" restrict="0-9" />
The problem is that i am able to edit only one column of my datagrid (if i edit one row, all other rows become non editable automatically) and it does not store the value for that single row as well.
One more thing is that, my data grid is dynamic i.e. i can add rows dynamically.
Any help would be greatly appreciated.
Try using itemRenderer instead of itemEditor and set the rendererIsEditor property of the DG Column to true