Visual Basic.NET - pasar datos de datagrid a textbox

 
Vista:

pasar datos de datagrid a textbox

Publicado por Lety (11 intervenciones) el 07/10/2010 17:32:48
hola
problemas al hacer barrido del datagridview para pasar datos a textbox y realizar un update
desde un boton actualizar

Txt_serie.Text = Dgv_listado.Rows(i).Cells(0).Value
Txt_pedido.Text = Dgv_listado.Rows(i).Cells(1).Value

Txt_estatus = Dgv_listado.Rows(i).Cells(2).Value
Txt_tecnico1 = Dgv_listado.Rows(i).Cells(3).Value
mil gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de Hugo Correa
Val: 50
Ha disminuido su posición en 5 puestos en Visual Basic.NET (en relación al último mes)
Gráfica de Visual Basic.NET

RE:pasar datos de datagrid a textbox

Publicado por Hugo Correa (91 intervenciones) el 08/10/2010 21:15:50
Dim forma As New NOMBRE_FORMA
forma.Size = New Size(916, 683)
Dim fila As Integer = DataGridView1.CurrentCellAddress.Y
Dim Ds As New DataSet
Dim Da As New SqlClient.SqlDataAdapter("select * from TABLA order by campo1 ASC, Conexion)
Da.Fill(Ds, "TABLA")
Dim myDataView As DataView = New DataView(Ds.Tables("TABLA")
forma.TextBox1.Text = (myDataView(fila)("campo2"))
forma.TextBox2.Text = (myDataView(fila)("campo3"))
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar