There are rows with the data, but 'dt2.Rows[index].Delete();'
keeps giving me the error: There is no row at position 2, 3, etc
When the datatable [dt2] has more than 1 row of data, it throws the error. How can I fix it? I need the method to delete the selectd row each time.
if (Session["dtInfo"] != null)
{
DataTable dt1 = Session["dtInfo"] as DataTable;
DataTable dt2 = Session["dtNames"] as DataTable;
int index = Convert.ToInt32(e.RowIndex);
...
Go to the complete details ...