Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
3230 Points
668 Posts
May 02, 2012 05:33 AM|LINK
error is at this line
if (dt.Rows.Count>0
{
DataRow dr = dt.Rows[0];
// and remaining statements
}
as there are no rows in datatable it is throwing error while retreiving row at zero index
tusharrs
Contributor
3230 Points
668 Posts
Re: There is no row at position 0
May 02, 2012 05:33 AM|LINK
error is at this line
if (dt.Rows.Count>0
{
DataRow dr = dt.Rows[0];
// and remaining statements
}
as there are no rows in datatable it is throwing error while retreiving row at zero index
( Mark as Answer if it helps you out )
View my Blog