datatable dt1 = ds.table[0]... ... //copy the distinct field to dt2 DataTable dt2 = dt.DefaultView.ToTable(true, "FieldName");
DataTable.Clone();
DataTable dt1 = ds.table[0]; DataTable dt2 = dt1.Clone(); // Populating the cloned DataTable is left as an excercise to OP :)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)