[2005] rows in datagridview
Hi guys,
I need to go through every row in my datagridview ignoring the first row each time.
Now i have the code
VB Code:
For each row as DataGridViewRows in DataGridView1.Rows
'do whatever i need to
Next
But i need to tweek it slightly so that the first row is ignored.
Any ideas anybody?
Thanks in advance :afrog:
Re: [2005] rows in datagridview
How about:
VB Code:
For i As Integer = 1 to DataGridView1.Rows.Count - 1
Dim row as DataGridViewRows = DataGridView1.Rows(i)
'do whatever i need to
Next
Re: [2005] rows in datagridview
Yep, works fine. Thanx. :wave: