>>Does it run fine? I got an error in run-time, not in the compile time. Also what type of the project did you chose for your class?
>OK. I got the error - so just implement the ISupportInitialize methods in the base class:
class SomeGrid : System.Windows.Forms.DataGrid ,System.ComponentModel.ISupportInitialize
> {
> public void BeginInit(){}
> public void EndInit(){}
> }
Unless something (like another thread) is trying to access the form during initialization (unlikely) this should work fine.
Too bad you were not here yesterday to help me figure this out. I guess I can try to go back to the idea of the class then - but may be not today - need to work on something else.
If it's not broken, fix it until it is.
My Blog