You have a DataSet with datatables in it. You want to delete some records(rows) from the data table before using the dataset to bind to a grid view or sending that to another place. What you do for that ?

To delete the record from the data set's data table, you can use the DataRow.Delete method.

var dataTable = dataSet.Tables[0];

int rowIndex=0;

foreach (DataRow dRow in dataTable.Rows)
{

dataTable.Rows[rowIndex].Delete();

rowIndex++

}

Now let's say you are using this modified data set as the data source to bind to a datagrid