Hi all,
I've desperately tried to find a databind property, a datasource, a datamember etc... for the ComboBoxTool I've just added to my ribbon.
I must have missed something, but I really don't know what.
If anyone can help ...
thx
Hi,
thank you for your answers !
sorry for this late reply, I'm back from hollidays !
CU
Also, it looks like you have to set the BindingContext of the new value list. See this post for a snippet: http://forums.infragistics.com/forums/p/9977/39295.aspx#39295
You can set the ValueList of the ComboBoxTool to a BindableValueList. Then you can bind to it. Also, to enumerate all values in an enum, you can use the static Enum.GetValues or Enum.GetNames methods.
I am not aware of an easy way to find all the values of an enum and adding them to a list at runtime. I think you have to add the enums value one by one, through code, to the ValueList of the ComboBoxTool.
I was not aware of the Enum.GetValues() and Enum.GetNames() methods and I am sorry for misleading anyone.
Emanuel