Ver Mensaje Individual
  #10 (permalink)  
Antiguo 11/01/2011, 07:38
Avatar de Aquaventus
Aquaventus
 
Fecha de Ingreso: junio-2010
Ubicación: Lima-Peru , En el alba de la naturaleza
Mensajes: 2.105
Antigüedad: 13 años, 9 meses
Puntos: 267
Respuesta: Pasar Fila de un Datagrid a Otro

Prueba haciendo esto :

Código vb:
Ver original
  1. Function ObtenerValoresFila(ByVal fila As DataRow) As String()
  2.         Dim Contenido(dt.Columns.Count() - 1) As String
  3.         For x As Integer = 0 To (Contenido.Length() - 1)
  4.             Contenido(x) = fila.Item(x).ToString()
  5.         Next
  6.         Return Contenido
  7.     End Function
  8.  
  9.     Sub mover()
  10.         For Each Seleccion As DataRow In dt.Select
  11.             dt2.Rows.Add(ObtenerValoresFila(Seleccion))
  12.             dt.Rows.Remove(Seleccion)
  13.         Next
  14.     End Sub
__________________
Internet es tener todo el conocimiento global a tu disposición.
Desarrollo de Software - Ejemplos .Net