This question is locked. New answers and comments are not allowed.
Hi,
A Gridview is bounded to a DomainDatasource (Machines) with AutoLoad=True. That Machines Entity has a BuildingId property which shows the joined Building entity's ID. I would like to have a simple lookup for Buildings so my gridview has a ComboboxColumn to show the available Buildings.
This Combobox is populated from GridView's DataLoaded event manually from BuildingSource Domaindatasource:
The Combobox appears and populated with Buildings properly, but when I select another Building then a ValidationError appears. Does it validate the DisplayValueMemberPath instead of SelectedValueMemberPath? How can I solve this issue?
(Error is: "Input is not in correct format")
Thanks in advance,
sosenk
A Gridview is bounded to a DomainDatasource (Machines) with AutoLoad=True. That Machines Entity has a BuildingId property which shows the joined Building entity's ID. I would like to have a simple lookup for Buildings so my gridview has a ComboboxColumn to show the available Buildings.
<telerik:GridViewComboBoxColumn Header="Building" UniqueName="comboboxcolumnindatagrid1" DisplayMemberPath="Name" SelectedValueMemberPath="Id"/>private void GridView_DataLoaded(object sender, EventArgs e) { GridViewComboBoxColumn comboColumn = GridView.Columns["comboboxcolumnindatagrid1"] as GridViewComboBoxColumn; comboColumn.DataMemberBinding = new Binding("Building"); comboColumn.ItemsSource = BuildingSource.Data; }(Error is: "Input is not in correct format")
Thanks in advance,
sosenk