I have a datatable and would like to know if its possible for me to select certain columns and input the data on a table. the columns are set out as below
|col1 |col
Also we can try like this,
string[] selectedColumns = new[] { "Column1","Column2"}; DataTable dt= new DataView(fromDataTable).ToTable(false, selectedColumns);