Hi,
I would like to use the multicolumn combobox as a lookup combobox. If I setup the mc combo with the same properties as a normal combobox it gives me the following message.
---------------------------
RadGridView Default Error Dialog
---------------------------
The following exception occurred in the RadGridView:
System.Data.ReadOnlyException: Column 'BusID' is read only.
at System.Data.DataRow.set_Item(DataColumn column, Object value)
at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value)
at System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value)
at Telerik.WinControls.Data.DataAccessComponent.set_Item(GridViewRowInfo row, GridViewDataColumn column, Object value)
To replace this default dialog please handle the DataError event.
---------------------------
OK
---------------------------
These are the (in my opinion) relevant designer.cs entry's
// cmbJourneyBus(multicolumncombobox) | |
this.cmbJourneyBus.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.journeyBindingSource, "BusID", true)); | |
this.cmbJourneyBus.DataSource = this.busBindingSource; | |
this.cmbJourneyBus.DisplayMember = "BusNumber"; | |
this.cmbJourneyBus.ValueMember = "BusID"; | |
// radComboBox1 (standard radcombobox) | |
this.radComboBox1.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.journeyBindingSource, "BusID", true)); | |
this.radComboBox1.DataSource = this.busBindingSource; | |
this.radComboBox1.DisplayMember = "BusNumber"; | |
this.radComboBox1.ValueMember = "BusID"; |
Am I doing something wrong or is this a bug?
Kind regards,
Edwin Dirkzwager
CIP Software BV
The Netherlands.