Can someone please help me????? 


I have set a datagrid with a MS Access database set as its datasource.
I want to allow the user to perform dynamic updates via the dataAdapter
by using an update command.
I do this by passing variables to hold the CurrentCell row and column
properties of the datagrid and pass them to the Update command of the
dataAdapter to carry out the update to the dataset.
I presently use a commit button to execute the update
of data performed on whatever cell is currently selected and edited at the time the
user clicks on the button. Which works fine but I don't want the user to have to
click the button everytime a single cell is updated because this will only update the
currently selected cell immediately after the button is clicked.
I would instead like for the update to immediately take place after focus has
left the current cell that has been edited.
My proposed resolution for this problem was to take the code and assign it to
the Datagrids CurrentCellChanged event expecting that the code will be executed
upon moving to another cell which it does but not immediately. It instead seems
to delay the update Until the focus has changed from the initially edited cell
to an aligning cell and then back again to the originally edited cell.
I have therefore tried to programmatically perform this action but without any
success.
Has anyone encountered this problem before and found a solution to this issue?
Any help would be greatly appreciated.
Thanks,
MIVEY4
I have set a datagrid with a MS Access database set as its datasource.
I want to allow the user to perform dynamic updates via the dataAdapter
by using an update command.
I do this by passing variables to hold the CurrentCell row and column
properties of the datagrid and pass them to the Update command of the
dataAdapter to carry out the update to the dataset.
I presently use a commit button to execute the update
of data performed on whatever cell is currently selected and edited at the time the
user clicks on the button. Which works fine but I don't want the user to have to
click the button everytime a single cell is updated because this will only update the
currently selected cell immediately after the button is clicked.
I would instead like for the update to immediately take place after focus has
left the current cell that has been edited.
My proposed resolution for this problem was to take the code and assign it to
the Datagrids CurrentCellChanged event expecting that the code will be executed
upon moving to another cell which it does but not immediately. It instead seems
to delay the update Until the focus has changed from the initially edited cell
to an aligning cell and then back again to the originally edited cell.
I have therefore tried to programmatically perform this action but without any
success.
Has anyone encountered this problem before and found a solution to this issue?
Any help would be greatly appreciated.
Thanks,
MIVEY4