how to fill combobox from database in
  • Hi i want to know how can fill combo box from database using want to retrieve data from database and populate it in combobox. 
  • 1 Comment sorted by
  • 1) there are two methods for load data from database into combobox( by wizard , by code)

    2) Dim con As New SqlConnection("Data Source")
    Dim cmd As New SqlCommand("Select id from Testing", con)
    Dim da As New SqlDataAdapter(cmd)
    Dim dt As New DataTable()
    If dt.Rows.Count > 0 Then
    ComboBox1.DataSource = dt
    ComboBox1.DisplayMember = "id"
    End If

    for further details and related topics

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook


Popular Posts of the Week

    Optimum Creative