For Immediate Onsite or Remote Support Call: (770) 744-4937

Fill ComboBox from Dataset VB.NET

Date: January 10, 2013 Author: Arun Patel Category: VB.NET Visual Basic Comments: 0
'Fill Supplier Combo
        Dim ds_Supplier As New DataSet
        Try
            ds_Supplier = DataClass.DataModule.GetAllSuppliers ' access class 
            cmb_Suppliers.DataSource = ds_Supplier.Tables(0)
            cmb_Suppliers.DisplayMember = "Supplier_Name"
            cmb_Suppliers.ValueMember = "ID"
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try