Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class design
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01401807
Message ID:
01402327
Vues:
53
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I want to subclass a DataGrid control (in .NET CE) environment. In particular, I want to have a common property _rowNumber and a common MouseUp event updating this number.
>
>This part I was able to figure out myself.
>
>Now, in addition I also want to have TableStyle as a property (can I use SET/GET the same way as with a regular property?) and a new signature for a method FormatGrid. The actual implementation of this method I'd like to have coded in the form.
>
>So, can you please just tell me what would be the syntax here to declare this method in C#?
>

You can't create a method in your subclass that can be overridden in the form. However, you can create an event that you can bind to a method in your form.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform