Hi ,
yes you right but u can use the datasoure it self to know how many record will be in Gridview
like this one
int countGridViewNum= ds.Tables[0].Rows.Count;
or you can use this one
int xx = 1;
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
xx++;
}
Best Regards
M.Mitwalli