I have just updrage my project to NetAdvantage for Win Client 2009 Vol. 1.
and I am trying to use ultraComboEditor, but it only showing the index, not the member I want to show.
Here is the code I am using to bind a Dictionary<int, string> as the data source:
set
{
if (value != null)
BindingSource bs = new BindingSource();
bs.DataSource =
value;
ultraComboEditor1.SetDataBinding(bs,
null);
ultraComboEditor1.DisplayMember =
"value";
ultraComboEditor1.ValueMember =
"key";
ultraComboEditor1.SelectedIndex = 0;
and it only shows
0
1
2
....
and so on.
I actually also tried
ultraComboEditor1.DataSource = bs; and I got the samething.
Help please.
Hello, The Dictionary as a datasource will not work in this way . The element that Dictionary contains is KeyValuePair and there is no direct way to get the value as string. I recommend you to use single dimensional collection and if you need to have index and value you can expose this in a properties. I hope this making the things clear.Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.