Hi,
I need a grid which will persist to the database every time a cell is edited
i've managed to achieve this for existing rows:
- handle the CellEndEdit event
- grab the DataBoundItem
- send it off to the data layer for updating
this does not work when editing cells in the "New row" as the DataboundItem property is null. I noticed that if i navigate to a different row, from this point the DataBoundItem is NOT null and updates will work.
Is there any way to make this happen on CellEndEdit, can i force the grid to create a new item in the datasource at this point instead of waiting for the user to navigate away from the row?
Thanks,
Matt
I need a grid which will persist to the database every time a cell is edited
i've managed to achieve this for existing rows:
- handle the CellEndEdit event
- grab the DataBoundItem
- send it off to the data layer for updating
this does not work when editing cells in the "New row" as the DataboundItem property is null. I noticed that if i navigate to a different row, from this point the DataBoundItem is NOT null and updates will work.
Is there any way to make this happen on CellEndEdit, can i force the grid to create a new item in the datasource at this point instead of waiting for the user to navigate away from the row?
Thanks,
Matt