Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Now to subclass a grid
Message
From
02/11/2010 04:24:51
 
 
To
01/11/2010 18:37:44
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01487795
Message ID:
01487828
Views:
43
>>> First queston is, can you subclass it or is it a sealed class?
>
>I have subclasssed it in code and can use that subclass on a form. I'm new to .net so don't know else to subclass it.

You pretty much have to do it that way.
One thing you can do is set up the base grid the way you want it on a scratch form then open the x.Designer.cs file and copy the relevant bits of the Form designer generated code into the InitLayout() of the subclass. You'll need to delete the 'this.grid1 (or whatever) from each property but it's probably better than trying to do it all manually.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform