Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
I occasionally receive this exception after changing the datasource object and performing sorting on various grid colums. This not not happening after specific change in the datasource but when happens my application is terminated with the following exception which is handled on the program.cs around the Application.Run(new FormMain());
Object reference not set to an instance of an object.
at Syncfusion.WinForms.DataGrid.Interactivity.CellSelectionController.UpdateCurrentCell()
at Syncfusion.WinForms.DataGrid.Interactivity.CellSelectionController.ProcessOnSortChanged(SortColumnChangedEventArgs args)
at Syncfusion.WinForms.DataGrid.Interactivity.CellSelectionController.HandleGridOperations(DataGridOperationEventArgs args)
at Syncfusion.WinForms.DataGrid.GridModel.RefreshAfterSorting(GridColumn column, Boolean cancelScroll, Boolean isInDeferRefresh, Boolean isGroupDropItem)
at Syncfusion.WinForms.DataGrid.GridModel.MakeSort(GridColumn column, Boolean isGroupDropItem)
at Syncfusion.WinForms.DataGrid.GridHandler.<>c__DisplayClass18.<OnMouseClick>b__14()
at Syncfusion.WinForms.DataGrid.BusyIndicatorHelper.RunWork(SfDataGrid dataGrid, Action work, BusyIndicatorAction busyIndicatorAction, Boolean showBusyIndicator)
at Syncfusion.WinForms.DataGrid.GridHandler.OnMouseClick(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Syncfusion.WinForms.Controls.SfScrollControl.WndProc(Message& msg)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at NLogManager.Program.Main()