error de llenado de tabla mediante Datagrid
Publicado por Alfonso Quevedo Gomez (3 intervenciones) el 24/05/2021 00:04:33
1
2
3
4
5
6
7
8
9
Private Sub llenaGrid()
Dim ds As New DataSet
Dim dt As New DataTable
Dim strsql As String = "SELECT IDPERSONA, NOMBRE, APELLIDO, CORREO, DIRECCION FROM PERSONA"
Dim adp As New OleDb.OleDbDataAdapter(strsql, conn)
ds.Tables.Add("tabla")
adp.Fill(ds.Tables("tabla"))
Me.DataGridView1.DataSource = ds.Tables("tabla") <---- aca se produce error
End Sub
Valora esta pregunta


0