DatagridView
Publicado por Carina (13 intervenciones) el 19/06/2007 13:56:36
Hola a todos!!! tengo un problema con un datagridview. Tengo una tabla que esta enlazada con el datagridview de las cuales muestro solo 2 columnas (tiene 4), ademas tengo un textbox que cuando cuando selecciono un archivo se carga la ruta de archivo automaticamente, quiero que ese dato se cargue junto con otro dato en el datagridview, intente de varias formas
1)
Doc_documentos_detallesDataGridView.Rows.Add("Adjunto", destino & "\" & System.IO.Path.GetFileName(fuente), 1)
2)
Dim row1 As String() = {"Adjunto", destino & "\" & System.IO.Path.GetFileName(fuente), 1}
Doc_documentos_detallesDataGridView.Rows.Add(row1)
y me sale el siguiente error
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.
Que hago mal? Muchas gracias
1)
Doc_documentos_detallesDataGridView.Rows.Add("Adjunto", destino & "\" & System.IO.Path.GetFileName(fuente), 1)
2)
Dim row1 As String() = {"Adjunto", destino & "\" & System.IO.Path.GetFileName(fuente), 1}
Doc_documentos_detallesDataGridView.Rows.Add(row1)
y me sale el siguiente error
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.
Que hago mal? Muchas gracias
Valora esta pregunta


0