New feature! Upgrade and increase expert visibility of your issues with Priority Questions.
'Create the binding sources. Dim BSAccountComboBox As New BindingSource 'Apply the binding sources. BSAccountComboBox.DataSource = accountList With accountComboBox .Name = "account" .DataSource = BSAccountComboBox .HeaderText = "Account" .DisplayMember = "accList" .ValueMember = "acc_id" .DropDownWidth = accComboBoxDropDwnWidth .DefaultCellStyle.BackColor = Color.WhiteSmoke .Width = 220 .FlatStyle = FlatStyle.Flat .MaxDropDownItems = 10 With dgvCreditorInvoiceDetail 'Add the accountComboBox column to the DataGridView control. .Columns.Add(accountComboBox) End With
Join the community of 500,000 technology professionals and ask your questions.