Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/11/2009, 04:36
jarogo
 
Fecha de Ingreso: septiembre-2009
Ubicación: Galicia
Mensajes: 111
Antigüedad: 14 años, 8 meses
Puntos: 3
Respuesta: Como Reordeno filas de un datagridview C#

Hola!

pero entonces no quieres reordenar, quieres desplazarte por las filas ¿no?

Si es eso, te valdría con los botones que movieran el Current Cell:

'primero
DataGrid.CurrentCell = DataGrid.Rows(0).Cells(0)

'anterior
DataGrid.CurrentCell = DataGrid.Rows(DataGrid.CurrentRow.Index - 1).Cells(0)

'siguiente
DataGrid.CurrentCell = DataGrid.Rows(DataGrid.CurrentRow.Index + 1).Cells(0)

'último
DataGrid.CurrentCell = DataGrid.Rows(DataGrid.Rows.Count - 1).Cells(0)


Saludos!