PDA

View Full Version : Removing row from a grid



udayogra
2 Nov 2012, 2:17 AM
Previously we were using this code to remove currently selected row from the grid :

datastore.remove(grid.getSelectionModel().getSelected());

But now this code breaks. So what is alternate way of doing it?

I tried dataSource.remove(grid.selModel.selected) but this doesnt remove anything.

Farish
2 Nov 2012, 2:21 AM
Use:


grid.getSelectionModel().getSelection();

instead of


grid.getSelectionModel().getSelected();