7/21/2010 11:42:11 PM
Title:
datagrid
Hi All,
how to add the data to datagrid at runtime, deleting also how to do it?
7/22/2010 1:49:11 AM
Hi Ram,
using dataProvider property of datagrid you can add data.
to delete data simply delete item form the dataProvider it also delete data from datagrid.
make sure dataProvider is bindable, dataProvider can be array, arrayCollcetion, xmlList.
refer below links....
http://livedocs.adobe.com/flex/3/html/help.html?content=dpcontrols_6.html
http://blog.flexexamples.com/2008/05/11/creating-an-editable-datagrid-control-in-flex/
Regards,
Virat Patel
7/22/2010 6:13:27 AM
simply remove item from the dataprovider at the index required
// to remove 2nd row pass the insdex as 1
myDataGridDataprovider.removeItemAt(1)