N
Nickneem
I'm trying to figure out the datagridview, but I'm having trouble
stepping through the selectedrows because the first row I get is the
last row selected (with the heighest index).
For instance if I select 3 rows
jan
feb
mar
Dim TmpRow As DataGridViewRow
For Each TmpRow In dgReports.SelectedRows
msgbox tmprow.index
next tmprow
I'll get 3,2,1 instead of 1,2,3
I don't know if this is by design but it gives me a hard time doing my
stuff right...
Thanks in advance,
Mike
stepping through the selectedrows because the first row I get is the
last row selected (with the heighest index).
For instance if I select 3 rows
jan
feb
mar
Dim TmpRow As DataGridViewRow
For Each TmpRow In dgReports.SelectedRows
msgbox tmprow.index
next tmprow
I'll get 3,2,1 instead of 1,2,3
I don't know if this is by design but it gives me a hard time doing my
stuff right...
Thanks in advance,
Mike