Apply a format to a datagrid in the load form event

I am loading a form that has a datagrid in it. In the load event for the form I have several datagrid formatting lines of code. Several work just fine but a few (dealing with row height and row header for example) do not update to the changes made in the code. I have realized that I can attach these lines of code to a button after the form loads and press the button and the formatting will take place. The formatting is taking place when the form loads too but then somewhere the formatting gets reset (like in the initializeComponent). I need some help understanding how to fix this problem. The wierd thing is if I load the form as a child form this problem happens but if I just "form.show()" all the formatting steps occur.

Is there a better place to put formatting code for a datagrid than the form load event?

Is there a way to override the formatting that is taking place after the load form event completes? Where is this code?

Thanks

[1008 byte] By [CFIG] at [2007-12-24]
# 1

Try using the form1 activated event.

All the initializecomponent stuff should be

finished by then.

TallDude at 2007-8-31 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...