table.Columns.Add("Id",typeof(int));
int i = 1;
foreach (DataRow drRow in table.Rows)
{
drRow["Id"] = i;
i++;
}
//Row ID --For newly adding slots
table.Columns["Id"].AutoIncrement = true;
table.Columns["Id"].AutoIncrementStep = 1;
table.PrimaryKey = new DataColumn[] { table.Columns["Id"] };
table.AcceptChanges();
DataRow drRow = table.Rows.Find(RowID);//Get selected Grid Row ID//using primary key to delete a row
drRow.Delete();