or
void grid_RowFormatting(object sender, Telerik.WinControls.UI.RowFormattingEventArgs e) { try { if ((grid.MasterTemplate.Columns.Contains("colARRIVE")) && (grid.MasterTemplate.Columns.Contains("colDEPART"))) { if ((TimeSpan)e.RowElement.RowInfo.Cells["colARRIVE"].Value == (TimeSpan) e.RowElement.RowInfo.Cells["colDEPART"].Value) { e.RowElement.Font = new Font(e.RowElement.Font, FontStyle.Strikeout); } else { e.RowElement.Font = new Font(e.RowElement.Font, FontStyle.Regular); } } if (e.RowElement.RowInfo.Cells["colSRC"].Value.ToString() == "O") { e.RowElement.BackColor = System.Drawing.Color.AliceBlue; } } catch (Exception ex) { } }You are truly stuck, you can't clear the original error. The only way out I found is to force quit the demo application via the Task Manager.
By the way, don't click the down scroll box (I mean the little triangle at the bottom of the scroll bar) or the app will start scrolling endlessly and eventually crash.
Public Class MyGridViewEditManager Inherits GridViewEditManager Public Sub New(ByVal gridView As RadGridViewElement) MyBase.New(gridView) End Sub Public Overrides Function CloseEditor() As Boolean Dim closeOnFail As Boolean = Me.CloseEditorWhenValidationFails Me.CloseEditorWhenValidationFails = True Dim result As Boolean = MyBase.CloseEditor() Me.CloseEditorWhenValidationFails = closeOnFail Return result End FunctionEnd ClassMe.MyGridView.GridViewElement.EditorManager = New MyGridViewEditManager(Me.MyGridView.GridViewElement)