Completed
Last Updated: 28 Feb 2014 11:53 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 03 Jan 2014 10:12
Category: GridView
Type: Bug Report
0
FIX. RadGridView - Cancelling the CellValidating throws InvalidCastException
To reproduce:
- add a RadGridView with one column - GridViewMultiComboBoxColumn;
- set DataSource property of the column;
- subscribe to the CellValidating and use the following code:

 private void radGridView1_CellValidating(object sender, CellValidatingEventArgs e)
        {
            e.Cancel = true;
        }

Run the application and select a value from the GridViewMultiComboBoxColumn. When pressing Enter key, InvalidCastException is thrown.

Workaround: 

radGridView1.EditorManager.CloseEditorWhenValidationFails = true;
0 comments