I used BindingList for data binding,
BindingList<Person> personList =
new
BindingList<Person>();
radMultiColumnComboBox1.DataSource = personList;
RadMultiColumnComboBoxElement multiColumnComboElement = this.radMultiColumnComboBox1.MultiColumnComboBoxElement;
multiColumnComboElement.EditorControl.MasterTemplate.AutoGenerateColumns = false;
GridViewTextBoxColumn column = new GridViewTextBoxColumn();
column.HeaderText = "ID";
column.FieldName = "id";
column.Name = "colId";
multiColumnComboElement.Columns.Add(column);
column = new GridViewTextBoxColumn();
column.HeaderText = "Name";
column.FieldName = "name";
column.Name = "colName";
multiColumnComboElement.Columns.Add(column);
Let Person object have two properties, id and name. I set ValueMember to id and DisplayMember to name.
And I set the SelectedValue,
radMultiColumnComboBox1.SelectedValue = person.id;
This is working correctly. But when person.id become null, SelectedValue is not null, instead it select first item of BindingList<Person>.
I can't understand why. Pls answer to me.