0

In a Flex DataGrid, you can delete a row using

[Objectname].removeSelectedIndex();

But this function is missing in the Flexicious DataGrid. Is there any other way / function to delete a row in flexicious?

ketan
  • 19,129
  • 42
  • 60
  • 98
Nikhil Mahajan
  • 54
  • 1
  • 2
  • 12

1 Answers1

1

You do not have to remove a row from the datagrid. Datagrid rows are generated according to the elements inside the .dataProvider (object collection)

To remove one "row" you have to remove the element in the .dataProvider.

Depending on what "type" your .dataProvider is you <> be able to do

  grid.dataProvider.removeItemAt(index);

Check

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/data/DataProvider.html

Adrian Pirvulescu
  • 4,308
  • 3
  • 30
  • 47
  • well the problem i am facing here is that i am having a check box list for each row. when i delete a row from dataprovider to reflect the change in datagrid i have to refresh the datagrid now when i refresh the grid the pre selected rows are also refreshed and they become unselected. – Nikhil Mahajan Jun 22 '12 at 10:10
  • Then something is wrong in how you defined the renderers and the data model for them. please post you code! – Adrian Pirvulescu Jun 22 '12 at 11:37