This question is locked. New answers and comments are not allowed.
I hava a problem with selecting value in RadColumnComboBox.I can't even change property selectedValue.
After running this code selectedValue is 1 not 5. A can't find a way to choose element in multicolumnbox programicaly so the user could see selected item before changing value to other.
Jarek.
this.radMultiColumnComboBoxMachineEventWorkerApproved.DataSource = this.bindingSourceWorkers; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.ValueMember = "idWorker"; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.DisplayMember = "surname"; |
foreach (var column in this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns) |
{ |
column.IsVisible = false; |
} |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["idWorker"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["name"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["surname"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["PESEL"].IsVisible = true; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["name"].HeaderText = "ImiÄ™"; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["surname"].HeaderText = "Nazwisko"; |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.Columns["PESEL"].HeaderText = "Pesel"; |
// ------------ now I try to change value |
this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.SelectedValue = 5; |
var selectedValue = this.radMultiColumnComboBoxMachineEventWorkerApproved.MultiColumnComboBoxElement.SelectedValue; |
After running this code selectedValue is 1 not 5. A can't find a way to choose element in multicolumnbox programicaly so the user could see selected item before changing value to other.
Jarek.