[SOLVED] DataGridView rowindex, get or set

Answered Closed
0
0

Hi,

How can i select a row in DGV?
For example:

grid.rows.index = 44

What should I use?
Thanks

  • You must to post comments
Best Answer
0
0

Jorge,

depends on wether your DataGridView is single or multiselecting.

Find suggestions here:

https://social.msdn.microsoft.com/Forums/windows/en-US/47e9c3ef-a8de-48c9-8e0d-4f3fdd34517e/datagridview-select-row-programatically?forum=winformsdatacontrols

Best regards
Frank

  • You must to post comments
0
0

Hi Frank,

Got it, have to selected the cell.

Thank you,

  • You must to post comments
0
0

Hi Frank,

Ok i can selected it with grid.rows(x).selected = true

It selected it, but the arrow in the start of the row doesn’t point to this row, normal?

  • Frank (ITG)
    Please follow the linked discussion regarding CurrentCell. Regards, Frank
  • You must to post comments
Showing 3 results