Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Properties on Custom Contols
Message
 
À
12/09/2002 17:22:08
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00699968
Message ID:
00699972
Vues:
15
Jim,

Yes you can add a property "As" a collection. I don't have any quick examples or articles to point you to but I have seen it in code (I just can't remember where). You first create a class that inherits from a collection class. Then you base your property on the custom class. The Get and Set of the property would access methods of your custom class to extract the data you want. Hopefully this helps.

>Cathi,
>
>Is it possible to add a property that is a collection ( say a SQL DataAdapter parameter collection) to a custom control? If so, how would it be done and what would the code be for the get and set functions for the controls? Is there an article on doing this somewhere?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform