Sajeev
Sajeev

Reputation: 33

Event handling in Usercontrol in winform

I have a usercontrol to provide a data grid view and using it in a form. I have a decorator for this data grid view which provides the grouping functionality to this data grid view. Now all times a cell is clicked, the data grid view cell changed event is fired first and then the grouper event. Is there any way to change the event firing sequence?

Upvotes: 3

Views: 220

Answers (1)

Chinjoo
Chinjoo

Reputation: 2832

You need to unregister the event from the datagridview, attach the decorator and then reregister the event.

Upvotes: 1

Related Questions