B
bidalah
Hello all,
I have a Windows form datagrid which is bound to a datatable in a
dataset. I want changes that the user performs on the information in
the datagrid to be automatically reflected in the the underlying
datatable.
For the most part this is working. Then sometimes it does not, and I
can't figure out why. It seems that if you change a given datagrid
row, and then click on a different datagrid row, the change generally
gets recorded. If you change a row, and do not click on a different
row, the change is generally NOT recorded, no matter how many cells on
that datagrid row you altered. I don't understand why this is, and
why it is not completely predictable. It also creates a problem for
users who might simply make a change and forget the extra step of
clicking somewhere else.
What is the exact mechanism (event?) which causes the datasource of
the datagrid to be updated? Is there any way to force the datasource
to update itself? Any help would be appreciated.
I have a Windows form datagrid which is bound to a datatable in a
dataset. I want changes that the user performs on the information in
the datagrid to be automatically reflected in the the underlying
datatable.
For the most part this is working. Then sometimes it does not, and I
can't figure out why. It seems that if you change a given datagrid
row, and then click on a different datagrid row, the change generally
gets recorded. If you change a row, and do not click on a different
row, the change is generally NOT recorded, no matter how many cells on
that datagrid row you altered. I don't understand why this is, and
why it is not completely predictable. It also creates a problem for
users who might simply make a change and forget the extra step of
clicking somewhere else.
What is the exact mechanism (event?) which causes the datasource of
the datagrid to be updated? Is there any way to force the datasource
to update itself? Any help would be appreciated.