N
NetNewbie
Hi,
I noticed the following behaviour with datagridview(DGV). I am hoping
someone can suggest me the solution. I have several DGV's in my application
through which
data can be entered/modified/deleted. All the DGV are database bound.
I also have binding navigators for each of the DGV's. From my testing, I
noticed that one can enter a new row in 2 ways.
a) by clicking in the last row in DGV after scrolling down.
b) by clicking on the addnew button in the binding navigator/toolstrip.
for a) I noticed that the new row has a * and an arrow on the same row. But
for b) I noticed that the * is on a different row and the arrow on a
diffrent row, so there are 2 empty rows at the end
Now when a row is entered using option a) and then user clicks delete from
the bindingnavigator, 2 rows get deleted. This means a row is unintentionally
deleted. For option b) since there were 2 rows (with a * and an arrow), the
delete operation does not affect an actual row.
Has anybody else seen this behaviour ? I hope I was able to explain it
clearly. Any help on how to have the same delete behaviour no matter how a
new row is created will be greatly helpful.
Thank you
I noticed the following behaviour with datagridview(DGV). I am hoping
someone can suggest me the solution. I have several DGV's in my application
through which
data can be entered/modified/deleted. All the DGV are database bound.
I also have binding navigators for each of the DGV's. From my testing, I
noticed that one can enter a new row in 2 ways.
a) by clicking in the last row in DGV after scrolling down.
b) by clicking on the addnew button in the binding navigator/toolstrip.
for a) I noticed that the new row has a * and an arrow on the same row. But
for b) I noticed that the * is on a different row and the arrow on a
diffrent row, so there are 2 empty rows at the end
Now when a row is entered using option a) and then user clicks delete from
the bindingnavigator, 2 rows get deleted. This means a row is unintentionally
deleted. For option b) since there were 2 rows (with a * and an arrow), the
delete operation does not affect an actual row.
Has anybody else seen this behaviour ? I hope I was able to explain it
clearly. Any help on how to have the same delete behaviour no matter how a
new row is created will be greatly helpful.
Thank you