hazz

psuedo code...

set DataGridView1.row = i

'where i = 0 to DataGridView1.Rowcount



Re: Visual Basic General How do I set the row number of a DataGridView?

hazz

Me.DataGridViewAnalog.CurrentCell = Me.DataGridViewAnalog(COL_NUMBER, ROW_NUMBER)

I guess I can't just set the row.... DataGridView.CurrentRow is Read Only... meant to be used to retrieve the current row, but not set it....





Re: Visual Basic General How do I set the row number of a DataGridView?

Giber

Hi Hazz,

Me.DataGridViewAnalog.Rows(rownumber).Cells(ColumnNumber or "ColumnName").Selected = True






Re: Visual Basic General How do I set the row number of a DataGridView?

hazz

Thank you Giber !