There is no row at position 1
how to Solve " There is no row at position 1. "
your datatable doesn't contains any Rows in it, thats why that error occurs,to prevent it always use condition to check like that
Collapse | Copy Code
if(dt.Rows.Count>0)
{
}
1) Debug your code2) Check is there any rows in your table DBCUSTOMERMASTER
No comments :
Post a Comment