EndEdit not working

  • Thread starter Thread starter Gav
  • Start date Start date
G

Gav

Hi all,

I have a Datagrid and a save button if I change a value in a cell in the
datagrid and hit the save button, it does not write the new value into the
database. If I move the focus away from the cell and then click save I get
the new value in the DB.

Is there a way I can get the new value without having to focus another cell
before saving?

I have tried looping through all the rows in the dataset and calling
EndEdit() but it doesn't make any difference.

Any help would be much appreciated.

Thanks
Gav
 
Hi Gav

I use a third party DataGrid, XtraGrid, but had a similar problem. I had to
call a grid command: gridView.PostEditor, before row.EndEdit() would work.

Hope this helps
Clare
 
Hi Gav,
Iterating through all the rows works fine. Did you use BeginEdit() before
using EndEdit().
 
Back
Top