Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataColumn Size
Message
From
13/02/2003 11:39:38
 
 
To
13/02/2003 11:17:16
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00752653
Message ID:
00752741
Views:
27
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform