Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataColumn Size
Message
De
13/02/2003 11:39:38
 
 
À
13/02/2003 11:17:16
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00752653
Message ID:
00752741
Vues:
20
Wilson,

Jayesh gave you code to determine the length of actual data ... I assume that is not what you want. The Columns collection has a MaxLength property ...
ds.MyTable.Columns[0].MaxLength
but it is not automatically set when you define DataSets, it's default is -1. You could set the MaxLength property for all columns manually yourself when you define your DataSet, but I also assume that that is not what you want. I don't know if there's an automated way of doing it ... sorry, I guess I'm no help. I think you might have to roll-your-own code to auto-generate this.

~~Bonnie


>Why do i have to use the Rows object instead of the Column Object, if i am talking about a specific Column.
>
>Which are the Rows of a table and wich are the columns, maybe i am confused.
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