Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Now to subclass a grid
Message
From
02/11/2010 05:41:01
 
 
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:
01487830
Views:
47
>>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.

tried that but got myself in an awful mess, will give it another go.

I have found that if I create a "user control" with the grid, I can amend the user control class and that updates in the form. Is this an acceptable method of coding? don't quite understand the difference between a "User Control" and a straight forward class.


Gary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform