Why UltraComboEditor shows ValueMember instead of DisplayMember when DisplayMember is DBNull or even string.Empty ?
DataTable dt = new DataTable();dt.Columns.Add("id", typeof(int));dt.Columns.Add("name", typeof(string));dt.Rows.Add(new object[] { 0, string.Empty });ultraComboEditor1.DataSource = dt.DefaultView;ultraComboEditor1.ValueMember = "id";ultraComboEditor1.DisplayMember = "name";ultraComboEditor1.Value = 0;
How to avoid this?
You can set
(ultraComboEditor1.ValueList as Infragistics.Win.ValueList ).DisplayStyle = ValueListDisplayStyle.DisplayText;
We tried this option but it appears that ValueList property is protected on the version we using (9.1),
Is there a better way to avoid the display of Value Member?
Thanks ahead, Itamar.
Well found it quicker than i tought, need to set it on higher level...
(ctrl.Items.ValueList
.DisplayText;