P
Paul
Hi, just wondering if anyone knows how to solve this runtime error as I am
trying to just get the row number of the selected delete command on a
gridview.
Index was out of range. Must be non-negative and less than the size of the
collection.
Parameter name: index
when running
protected void gridview_RowDeleting(object sender, GridViewDeleteEventArgs e)
{//row deleting event
int rowID = (int)gridview.DataKeys[e.RowIndex].Value ;
}
trying to just get the row number of the selected delete command on a
gridview.
Index was out of range. Must be non-negative and less than the size of the
collection.
Parameter name: index
when running
protected void gridview_RowDeleting(object sender, GridViewDeleteEventArgs e)
{//row deleting event
int rowID = (int)gridview.DataKeys[e.RowIndex].Value ;
}