Datagrid Update Problem VB.NET

jch001

Newcomer
Joined
Apr 7, 2006
Messages
18
Location
Near London UK
Hi,

I have datagrid which works fine. However, I have a button which when clicked updates a value in the current selected row. This seems to work, I can see the value change. When I click my Save button, this value is NOT saved to the database.

If I alter any other value manually in that Row then BOTH values get saved. I obviously need to set an update flag or something. Does anyone know the syntax or am I completly missing the point.

I have done some searches but I have drawn a blank so far. thanks in advance. :confused:
 
I think I fixed it. Rather bizarrely all you had to do was set the Focus back to the data grid before updating the value.

I tried using the example in Microsofts DataGrid.BeginEdit Method in the Help File and even that doesn't work if you put the code on a button.
 
Back
Top