简体   繁体   中英

ComboBox with data binding and extra value

I have a dataset with different values. I would like to implement a combobox that filters this data. In application model I have the range of possible values but besides that I want to add extra "Any" field. Is that possible when using DataBinding?

The question is only about how to properly fill the combobox with data, assuming that this data is dynamic (besites special Any entry).

Just add a new 'Any' row to your dataset in code. I usually do it with an ID of -1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM