EndEdit not working

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
 
C

Clare s Wheeler

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
 
G

Guest

Hi Gav,
Iterating through all the rows works fine. Did you use BeginEdit() before
using EndEdit().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top