Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Help: Problems with design in Databindings Visual Studio 2012

$
0
0

Hello, I need your help please...

well i'm doing a system in visual studio 2012, and i have a problem when I use the databindings...

this is my code:

   

Imports System.Data
Imports System.Data.SqlClient

Public Class Frm_Docentes
    Dim dadocente As SqlDataAdapter
    Dim dsdocente As DataSet
    
    Private Sub Frm_Docentes_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        
        conexion.conexion.Open()
        dadocente = New SqlDataAdapter("Select * from Docentes", conexion.conexion)
        dsdocente = New DataSet()
        dadocente.Fill(dsdocente, "Docente")
        conexion.conexion.Close()

        TxtNombre.DataBindings.Add("Text", dsdocente, "Docentes.doc_nombres") **** problem here ****

The message says: I cannot create a secondary list for the field "Docente"... I suppose that is design issue, but i can't find a solution....

Please I need your help... sorry for my regular english...


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>