SyntaxFix
Write A Post
Hire A Developer
Questions
for (int i=0; i<dt_pattern.Rows.Count; i++) { DataRow dr = dt_pattern.Rows[i]; }
In the loop, you can now reference row i+1 (assuming there is an i+1)