Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enum data type
Message
De
10/01/2007 09:52:37
 
 
À
08/01/2007 22:05:48
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01183682
Message ID:
01184167
Vues:
29
>May I know what is the data type used by enum? I have a combobox that use enum as population. It hits error if I bind it to a integer field.

Enums default to int, unless you specify otherwise ... however, you'll still need to do some casting. Could you post your ComboBox code so we can figure it out?

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform