Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...