Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/04/2007, 13:05
programadorvip
 
Fecha de Ingreso: agosto-2006
Ubicación: en lima peru
Mensajes: 184
Antigüedad: 18 años
Puntos: 0
Re: Edit, Update, Cancel + Gridview

una pregunta como convierto una celda en un objeto??¿

If e.CommandName = "Edit" Then
Dim index As Integer = Convert.ToInt32(e.CommandArgument)
Dim row As GridViewRow = GvdAsientos.Rows(index)
Dim t1 As TextBox = CType(row.Cells.Item(3).Controls(0), TextBox)
Dim t2 As TextBox = CType(row.Cells.Item(4).Controls(0), TextBox)
Dim t3 As TextBox = CType(row.Cells.Item(6).Controls(0), TextBox)
Dim t4 As TextBox = CType(row.Cells.Item(5).Controls(0), TextBox)
End If

alguien me ayuda?