I have a Timer that managed the loop. In the loop I have datagridview.Rows.Add( b, a);
The code of the loop is as follow:
int n = 5
for ( int m=0; m<=n ; m++)
{
datagridview1.Rows.Add( b, a) // Just an example
}
With the timer the datagridview will be filled up.
Mine Question is: What Can I do that after the 5 loop it start back on the first
Row of the DatagridView?
It look like overwrite the first 5 Rows that came up. I have too look only 5 rows in the run time
Loop, Timer & datagridView
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Jul 26, 2008, 9:47 AM EDT
for ( int m=0; m<=n ; m++)
{
if(m=n)
{
m = 0;
}
datagridview1.Rows.Add( b, a) // Just an example
}