471,349 Members | 1,450 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

EndEdit not working

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
Jul 22 '05 #1
2 2087
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

"Gav" <sp**@spam.com> wrote in message
news:ex**************@tk2msftngp13.phx.gbl...
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

Jul 22 '05 #2
Hi Gav,
Iterating through all the rows works fine. Did you use BeginEdit() before
using EndEdit().

"Gav" wrote:
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

Jul 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Allan Bredahl | last post: by
2 posts views Thread by Gav | last post: by
3 posts views Thread by Bryan | last post: by
reply views Thread by Frank | last post: by
reply views Thread by John Sheppard | last post: by
5 posts views Thread by Anil Gupte/iCinema.com | last post: by
1 post views Thread by Marc | last post: by
reply views Thread by Greg Wright | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.