I've been wondering why you need another code since that iterating for
GridViewRow
is better in a
foreach
statement. But if you just want to know, then try Solution 1 or Solution 2. Or try this as well.
int i = 0;
while(i < GridView1.Rows.Count)
{
i++;
}
Best regards,
Eduard