I
Iain
I have a data grid. It is databound to a DataSet which is a kind of
CrossTab.
I allow the user to make a change to a cell and when they leave the cell I
update the database.
This all works nicely.
EXCEPT (you knew there was a gotcha!). If I mouse out of the datagrid to
another column, the DataGrid[x, y] has not been updated. It updates
later,but by that time it's too late for me and I've likely reloaded the
data from another result set.
I've tried catching Leave and Validated, but in both cases the value of the
Cell is the original one not the one I've typed in.
If I move around within the grid it all works nicely thank you.
My next thing to try is to find the contents of the text box, but this all
seems too hard. Am I missing something obvious?
Iain
CrossTab.
I allow the user to make a change to a cell and when they leave the cell I
update the database.
This all works nicely.
EXCEPT (you knew there was a gotcha!). If I mouse out of the datagrid to
another column, the DataGrid[x, y] has not been updated. It updates
later,but by that time it's too late for me and I've likely reloaded the
data from another result set.
I've tried catching Leave and Validated, but in both cases the value of the
Cell is the original one not the one I've typed in.
If I move around within the grid it all works nicely thank you.
My next thing to try is to find the contents of the text box, but this all
seems too hard. Am I missing something obvious?
Iain