Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting number of columns in a row
Message
From
17/03/2007 17:04:39
 
 
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01205036
Message ID:
01205049
Views:
28
This message has been marked as a message which has helped to the initial question of the thread.
Actually, Kevin ... your answer *WAS* way better and correct.

Sorry Mike, but your syntax won't cut it (unless you're using a Typed DataSet where you have a DataTable named table), but for a plain old run of the mill DataSet, it needs to be:
DataSet.Tables["MyTable"].Columns.Count 
//or 
DataSet.Tables[0].Columns.Count 
'or in VB, substitue () for []
~~Bonnie


> In a datatable? dataset.table.columns.count
>
>Jeez, that was SO MUCH BETTER than my reply!!! (haha, just kidding)
>
>your friend,
>Tracy-in-a-bad-mood
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