Hi Joan Adams,
Thank you for sharing your ideas.
Although there is no such feature in the
GridViewComboBoxColumn (
GridViewLookUpColumn) out-of-the-box, you still can implement the behavior in your custom code. When an edit operation is finished and the new value is to be saved in the grid
, the RadGridView.Validating event is fired. You could attach to it to check whether the corresponding column is currently edited and if it is so, you can get the new value through
RadGridView.ActiveEditor.Value. After that, you can check if it exists in the underlaying data source and take the necessary actions.
Another way to do this is to use the
RadGridView.CellEditorInitialized and
RadGridView.CellEndEdit events. In the event handler for
the
RadGridView.CellEditorInitialized, attach to the
RadGridView.ActiveEditor.Validating event. Then, in the event handler for editor's
Validating event you could do the same actions. In this approach, you should remember to detach from editor's
Validating event when it is closed in the event handler for
CellEndEdit event.
Please try one or both of these approaches and tell us if it works fine for you. Also if you have any additional questions, please don't hesitate to write us.
Regards,
Georgi
the Telerik team