Link to home
Start Free TrialLog in
Avatar of AntonioRodrigo
AntonioRodrigo

asked on

DataGridView load event

Hello,

I am using Windows forms. I have a DataGridView on my form. I need to hook up the event which occurs on initialization of DataGridView. I know that I can catch event from my form (on which DataGridView is placed), but I can't to this, because I have several DataGridViews on my form and I need to operate on columns of each of them.

I thought of catching the parents Load event of DataGridView, which is System.Windows.Forms.Control class, but I don't know how to do this? Any idea?

Greetings, Frenky
Avatar of jppinto
jppinto
Flag of Portugal image

Avatar of AntonioRodrigo
AntonioRodrigo

ASKER

Thanks for answer - but Paint event is triggered multiple times (f.e. if you minimize control and then maximize it back again). I need an event which is triggered only once - at control initializing.
I don't any other then using the Form.Load event...
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial