Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/12/2011, 11:51
chino_black
 
Fecha de Ingreso: mayo-2011
Mensajes: 36
Antigüedad: 13 años
Puntos: 0
Respuesta: Obtener valor DataGrid

Cita:
Iniciado por josemanuel31675 Ver Mensaje
te anexo un ejemplo


Me.lb.Text =me.GridView1.Rows(e.CommandArgument).Cells(0).Tex t.ToString

me puedes anexar el encabezado del método por favor, es que el mio es diferente y el "e.CommandArgument" no me funciona.

Saludos.


Probe de esta forma pero tampoco funciona.
Código:
    Protected Sub grid_proyecto_Editar(ByVal sender As Object, ByVal e As GridViewCommandEventArgs)
        proyecto_nombre = Me.grid_proyecto.Rows(e.CommandArgument).Cells(1).Text.ToString
        Me.Label1.Text = proyecto_nombre
        'Response.Redirect("editar_proyecto.aspx?nombre=" & proyecto_nombre)
    End Sub