Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Common methods for different objects
Message
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01400964
Message ID:
01401385
Views:
38
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform