KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a ComboBox whose items are set using the DataSource property. The DataSource is a collection of a custom object ( that has a string property 'Value' and int property 'Id' ). In the initialise controls, I set the DisplayMember as Value and ValueMember as Id . Now I tried to clear the DataSource by calling, myComboBox.DataSource = null; When I did that, my DisplayMember is reset to "" automatically. Am I clearing the DataSource properly ?? Is that the way I should behave ???
Tags (comma-separated)
Save Edits
Cancel