Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

datagridview rowsremoved event gets called every time data loads

The datagridview rowsremoved event gets called every time the data gets loaded. It also makes sense to a certain extent that every time the data loads, the existing rows are removed. so technically the event should get called.

But how do i differenciate that from the actual delete button getting pressed. I don't think the key events should be used, that wouldn't be a clean approach.

Any help will be most appreciated.

like image 855
Nilotpal Das Avatar asked Sep 13 '25 15:09

Nilotpal Das


1 Answers

You could use the UserDeletedRow event instead.

like image 83
Dunc Avatar answered Sep 17 '25 01:09

Dunc