Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy single column in DataTable with data to new DataTable

Status
Not open for further replies.

BG12424

Programmer
Jun 4, 2002
717
US
I'm using VB.NET in an ASP.NET application.

I have a datatable (DataSet.Tables(0)) which I've populated as a resultset from the database, but I need to perform special actions on distinct records for one particular column (I have a composite key as my primary key for this table), so I would like to copy one column from my current table to a new DataTable, then work of it. How can I do this?

Also, is it possible to fill a single column datatable with a specific column within my resultset if my resultset has multiple columns being returned? Thanks




regards,
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top