I have a grid where the values for one of the columns should be unique across all rows. I want to make it so that when they edit a row, the drop list for that column filters out the previously selected items so that it is not possible to add or change a row which would create a duplicate.
The column in question is a GridTemplateColumn which contains a RadComboBox. Right now, I'm resetting the DataSource and calling DataBind on the combobox in the grid's ItemDataBound event (when the item is a GridEditableItem).
However, when I hit the InsertCommand or UpdateCommand events, the SelectedValue of the combobox is always empty.
Is there is an example that demonstrates the dynamic loading of a RadComboBox used in a GridTemplateColumn in which the combo box is loaded at runtime based on the existing row's values and demonstrates the inserting and updating? That means no use of DataSource objects like ObjectDataSource, AccessDataSource, SessionDataSource etc. in the example.
The column in question is a GridTemplateColumn which contains a RadComboBox. Right now, I'm resetting the DataSource and calling DataBind on the combobox in the grid's ItemDataBound event (when the item is a GridEditableItem).
However, when I hit the InsertCommand or UpdateCommand events, the SelectedValue of the combobox is always empty.
Is there is an example that demonstrates the dynamic loading of a RadComboBox used in a GridTemplateColumn in which the combo box is loaded at runtime based on the existing row's values and demonstrates the inserting and updating? That means no use of DataSource objects like ObjectDataSource, AccessDataSource, SessionDataSource etc. in the example.