Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing columns from a dataset
Message
De
31/12/2003 13:16:55
 
 
À
31/12/2003 13:07:51
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00863185
Message ID:
00863187
Vues:
11
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform