Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing columns from a dataset
Message
From
31/12/2003 13:16:55
 
 
To
31/12/2003 13:07:51
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00863185
Message ID:
00863187
Views:
12
>>I have a dataset and I need to remove some columns for charting purposes.<

Steve,

There are a few Remove methods on the Columns collection of the DataTable. I think it'd be easiest to copy your DataSet (or you're probably just using the DataTable) and remove the columns you don't need. Something like this:
Dim ReportTable As DataTable = MyDataSet.Tables("MyTables").Copy()
ReportTable.Columns.Remove("MyColumnName")
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform