enlazar un TextBox con un datagrid
Publicado por tom (1 intervención) el 09/12/2007 23:26:15
HOLA BUENAS LO UNIKO KE ME GUSTARIA SABER, YA KE SOY MUY NOVATO EN EL NET COMO ENLAZAR UN TEXT CON UN DATAGRID, ES DECIR LO SIGUIENTE PERO AL PULSAN UN Button2
Private Sub DataGridView1_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
If e.RowIndex >= 0 And e.ColumnIndex >= 0 Then
TodosFinca2.TextBox1.Text = DataGridView1.Item(0, e.RowIndex).Value.ToString
TodosFinca2.TextBox2.Text = DataGridView1.Item(1, e.RowIndex).Value.ToString
TodosFinca2.Show()
End If
End Sub
haber si alguien me puede echar una mano
Private Sub DataGridView1_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellDoubleClick
If e.RowIndex >= 0 And e.ColumnIndex >= 0 Then
TodosFinca2.TextBox1.Text = DataGridView1.Item(0, e.RowIndex).Value.ToString
TodosFinca2.TextBox2.Text = DataGridView1.Item(1, e.RowIndex).Value.ToString
TodosFinca2.Show()
End If
End Sub
haber si alguien me puede echar una mano
Valora esta pregunta


0