jch001 Posted April 19, 2006 Posted April 19, 2006 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: Quote
jch001 Posted April 20, 2006 Author Posted April 20, 2006 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.