Hi, I am creating custom GridView control and I have just discovered that when I click delete button (this part works well and correct row is deleted) and then I press F5 to refresh, I got next row deleted. This is obviously not something I would expect. Maybe somebody will ask why somebody would like to refresh screen, but that is not the case. I just can't allow this to be happening.
I know that it is happening because button was clicked at previous stage, but I cannot understand why sender is not same button as in previous, but the next one. Maybe it is because it remembers the ID of row and I do not assign this property manually, so ID of deleted row is taken somehow by next row?
Anyway, if anybody know how to avoid that, I would appreciate.
This is part of the code that is firing twice:
& ...
Go to the complete details ...