D
Debra has a question
Guest
I have a binding source which is bound to a datagridview. When a user would like to delete a row I put in the following code
bindingsource.RemoveCurrent();
datatable.AcceptChanges();
This all works very nicely, but the row ontop of the deleted row always is visible in the third to bottom row of what is visible in the datagridview. Basically all the rows move down until the previous row before the deleted row becomes the third to bottom of whats shown without scrolling. I would like the deleted row to be removed but nothing else to move. When I took away the code datatable.AcceptChanges(); this problem did not occur but then I got errors. Obviously something about the Accept changes is affecting the display of the datagridview. How would this be able to be solved?
Debra has a question
Continue reading...
bindingsource.RemoveCurrent();
datatable.AcceptChanges();
This all works very nicely, but the row ontop of the deleted row always is visible in the third to bottom row of what is visible in the datagridview. Basically all the rows move down until the previous row before the deleted row becomes the third to bottom of whats shown without scrolling. I would like the deleted row to be removed but nothing else to move. When I took away the code datatable.AcceptChanges(); this problem did not occur but then I got errors. Obviously something about the Accept changes is affecting the display of the datagridview. How would this be able to be solved?
Debra has a question
Continue reading...