How to retrieve other rows except 1st row from a data table.
Some times we need to work with rows removing 1st row of a data table that is returned by a method by querying from database. Hear is the code.
DataTable dt=GetDataTable();//Method that return data table
int countRow=dt.Rows.Count;
if (countRow== 0)
{
//Show a valid message
return;
}
int i=0;
for(i=1; i < countRow; i++)
{
//assign the row as you need
dt.Rows[i];
}
Where are you removing the first row??