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.Contr ol class, but I don't know how to do this? Any idea?
Greetings, Frenky
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.Contr
Greetings, Frenky
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.paint.aspx
jppinto