Hello everyone Is it possible to use a for loop to cycle through a set of gridviews and modify each one of them?
Let’s say I have 10 gridviews named Gridview1, Gridview2, Gridview3…and so on.
Can i write something like
for(int i=1; i<=10;i++)
{
Gridview[i].Rows[1]...
}
Hope I was clear enough, sorry for my english.
You can use
foreachloop. like this.Other approach, if you are using 2.0 version
More about foreach and OfType