![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/11/2009, 04:36
|
| | Fecha de Ingreso: septiembre-2009 Ubicación: Galicia
Mensajes: 111
Antigüedad: 15 años, 5 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! |