The text of this article is not in this database — only its details are. Read it on the old site: Programmatically Binding DataSource To ComboBox In Multiple Ways
15 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Jason WoolfPosted May 9, 2022, 1:07 PM
What a Brilliant set of examples!!!! - Thank you
Shehroz ImranPosted Feb 25, 2020, 4:09 AM
Hi Mr Hemant, After filling combo box with dataset, How to assign that to class object for other uses, specially when i want to make insert funcation using class objects.
Mukul MohalPosted Jun 4, 2019, 9:13 AM
I was getting an exception that "DataGridViewComboBoxCell value is not valid." then follwed this with DataError event and now i am getting error "Items collection cannot be modified when the DataSource property is set." can you please help me
inlay mamunPosted Oct 1, 2018, 3:08 AM
This is very helpfull
inlay mamunPosted Oct 1, 2018, 3:08 AM
Very Nice thanks
Reza MoghayadNiaPosted Aug 17, 2018, 3:35 AM
I set DataSource = myDataTable and ValueMember = "ID" and DisplayMember = "SubDefineName". both columns are available in myDataTable. but myComboBox display "ID" values and don't display "SubDefineName".
SHENYAUNG WANGPosted May 21, 2018, 12:49 AM
My combobox datasource is from SQL Server.I want to add an value to server and then combobox's display member and value will also update.But it need to restart fourm again.Can it update synchronously?
Hercules OberholzerPosted Feb 18, 2018, 4:38 AM
I have tried binding ComboBox Datasource to DataTable but when I use ComboBox.SelectedValue.ToString() I get "System.Data.DataRowView"
Mitul ahirPosted Aug 22, 2017, 6:14 AM
How to add default value in combo box after binding it with database directly
J NPosted Oct 17, 2015, 2:14 AM
Sorry but you're data set, data table and data viewer crash. Where do you write that stored procedure, please? In a C# class, I don't exactly follow?