.Net manipulate datatable

Larry Brister
Larry Brister used Ask the Experts™
on
How do I take a DataTable  and create a view that skips the first 5 columns in vb.net?
Or actually removes the first 5 columns form the datatable


  Using dt As New DataTable("Leads")

' blah... blah... blah...

End Using
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014
Commented:
The best way to do it would be to ignore those columns when creating the dataset, but without knowing how you do that, it's hard to give examples.

You can always remove columns:

YourDatatable.Columns.Remove("YourColumnNameOrIndex")
Larry Bristersr. Developer

Author

Commented:
Perfect
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial