last line in data grid not updating
-
I am having a hard time getting the getChanges to retrieve the changes that were performed on the last row of the data, since nothing really happens when the hit the enter key on the last line (it doesn't go to the next line since there isn't one. Has anyone found a way around this?
-
I am having a hard time getting the getChanges to retrieve the changes that were performed on the last row of the data, since nothing really happens when the hit the enter key on the last line (it doesn't go to the next line since there isn't one. Has anyone found a way around this?
why don't you just try writing a line of code like this one
Me.BindingContext(Me.Dataset11, "authors").Position += 1
just before you call theGetChanges()
method it will most probably work ;) sony speed -
why don't you just try writing a line of code like this one
Me.BindingContext(Me.Dataset11, "authors").Position += 1
just before you call theGetChanges()
method it will most probably work ;) sony speedthis does work in most scenarios, but i've had problems with doing it this way. say for instance you only have one row displayed in the datagrid? you can't change the position and therefore the data doesn't get saved. the proper way of handling this situation is manually calling EndEdit() for the datagrid, or the underlying datasource. hope this helps.
-jim