Click here to Skip to main content
15,867,995 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi have a problem, I want to set the CommandBarComboBox datasource, And have a display value and a DataValue. How can I do this. I can add items to the CommandBarComboBox, with a foreach datarow additem, but I want a display value and a datavalue.




Thanks
Posted

1 solution

You can't bind CommandBarComboBox to the datasource. You need to add every single value using CommandBarComboBox.AddItem Method()[^]

For further information, please see: CommandBarComboBox Interface[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900