|
#2 -
21/11/2011 1:46:07
|
Reporta abuso
|
Link Permanente
|
|
RE: oye amigo sabes como migrar de un textbox a excel y viseversa ??? digamos con un comparador una clave unica o asi por el estilo
|
|
|
OVERHOUSES ha dicho: | Hola:
Fijate si esto te sirve: For i As Integer = 0 To Grilla.Items.Count - 1 Check = Grilla.Items(i).Cells(0).FindControl("CHK") If Check.Checked Then TextBox1.Text = Grilla.Items(i).Cells("Núemro de Celda").Text End If Next
|
|
|
|
|
|
|
|
|
|
|
#4 -
05/10/2011 4:23:37
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
Bueno Fabiola este es en VB.NET pero gracias por el aporte.
|
|
|
|
|
|
|
#5 -
10/03/2011 7:38:15
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
|
muchisimas gracias amigo me resilvio mi problema en un 2*3
|
|
|
|
|
|
|
|
|
|
|
|
|
#8 -
26/02/2010 14:46:23
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
fabiola ha dicho: | for cont as integer = 0 to datagrid.VisibleRowColumn -1 texbox.text=" " & textbox.text & " " & datagrid.item(cont,0) next pero eso te agregaria lo de todas las columnas a un solo textbox si quieres utilizarlo en varios textbox pues tendrias que poner las coordenadas tu manualmente y los nombres de los textbox |
Hola Faliola gracias por tu post me sirvio mucho aunque modifique el codigo.
Asi quedo
If tAsocRuta.Text <> "" Then For YR As Integer = 0 To Me.DGProgRuta(4, YR).DataGridView.RowCount - 1 tDesAsocRuta.Text = (tDesAsocRuta.Text + " - " + Me.DGProgRuta(4, YR).Value) Next End If
en este caso yo necesitaba una columna expesifica del datagrid
Ojala les sirva a otras personas.
|
|
|
|
|
|
|
#9 -
29/07/2009 21:36:27
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
yo lo hice asi y lo guarde en una variable y lo muestra en un textbox
Session( row.Cells(1).Text = Session( TextBox7.Text = Session( Dim row As GridViewRow = GridView6.SelectedRow"fila") = row.Cells(2).Text"fila")"fila")
|
|
|
|
|
|
|
#10 -
19/06/2009 7:00:44
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
gracias al comentario..... me sirvio cañon
|
|
|
|
|
|
|
#11 -
26/01/2009 7:23:37
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
for cont as integer = 0 to datagrid.VisibleRowColumn -1 texbox.text=" " & textbox.text & " " & datagrid.item(cont,0) next pero eso te agregaria lo de todas las columnas a un solo textbox si quieres utilizarlo en varios textbox pues tendrias que poner las coordenadas tu manualmente y los nombres de los textbox
|
|
|
|
|
|
|
#12 -
26/01/2009 7:16:31
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
si es en visual basic 2003 seria algoa si for cont as integer = 0 to datagrid.VisibleRowColumn -1 texbox.text=datagrid.item(cont,0) next
pero eso te agregaria lo de todas las columnas a un solo textbox si quieres utilizarlo en varios textbox pues tendrias que poner las coordenadas tu manualmente y los nombres de los textbox
|
|
|
|
|
|
|
#13 -
31/05/2008 1:33:25
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
|
TextBox1.Text = Convert.ToString(this.dataGridView4.CurrentRow.Cells[0].Value); A SI SE HACE EN C#
|
|
|
|
|
|
|
#14 -
29/10/2007 17:30:25
|
Reporta abuso
|
Link Permanente
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
OVERHOUSES ha dicho: | Hola:
Fijate si esto te sirve:
For i As Integer = 0 To Grilla.Items.Count - 1
Check = Grilla.Items(i).Cells(0).FindControl("CHK")
If Check.Checked Then
TextBox1.Text = Grilla.Items(i).Cells("Núemro de Celda").Text
End If
Next
|
|
|
|
|
|
|
|
#15 -
02/10/2007 19:29:33
|
Reporta abuso
|
Link Permanente
|
|
RE: Pasar datos de un datagrid a un textbox
|
|
|
Hola:
Fijate si esto te sirve:
For i As Integer = 0 To Grilla.Items.Count - 1
Check = Grilla.Items(i).Cells(0).FindControl("CHK")
If Check.Checked Then
TextBox1.Text = Grilla.Items(i).Cells("Núemro de Celda").Text
End If
Next
|
|
|
|
|