Hi
I have multiselect UltraCombo which is bound to data source and have display and value members set. Its DropDownStyle property is set to DropDownList.
What I want to do is to display a text like 'N items are selected' when user checks (unchecks) some row.
But setting Text property directly clear selection as if I understand it tries to parse this string to check rows which have display value equals to the substrings.
What is the best or simplest way to do it?
Thanks
Hello Andrey,
There are different approaches to solve this task. I made small sample using custom userControl. Please take a look at the attached sample for more details and let me know if you have any questions.
Regards
This is the sample
H Georgi thanks for your reply
I'm afraid it won't work for me because I would like to have either UltraCombo control or control derived from it(this is what I currently have).
In your case I would have to either provide access to combo from outside of the user control or make many wrappers around its properties and events.
Can something be done around painting of combo or something like this?
Another possible approach could be if you are using CreationFilter. Please take a look at the atatched sample for more details and let me know if you have any questions.
Thanks, that is exactly what I wanted
Thanks for your feedback. If you have any questions, feel free to write us.