Remove columns in datatable
Remove multiple columns in datatable C#
// Create a Array of columns that you want to remove from your datatable.
var ColRemove = new string[] {"column1", "column2", "column3"};
foreach (var cols in ColRemove)
{
datatablename.Columns.Remove(cols);
}
0 comments: