Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Now to subclass a grid
Message
De
02/11/2010 05:41:01
 
 
À
02/11/2010 04:24:51
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01487795
Message ID:
01487830
Vues:
46
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform