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!
Greetings Syncfusion team,
Recently, I tried the frozen column feature, I wanted to make right mouse on column header to move the column to the first index and make it frozen. But then I encountered this error "Object reference not set to an instance of an object."
this is the stacktrace
| Name | Value | Type | |
|---|---|---|---|
| StackTrace | " at Syncfusion.WinForms.DataGrid.Renderers.GridHeaderCellRenderer.OnMouseDown(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, MouseEventArgs e)\r\n at Syncfusion.WinForms.DataGrid.Renderers.GridCellRendererBase.MouseDown(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, MouseEventArgs e)\r\n at Syncfusion.WinForms.DataGrid.GridHandler.OnMouseDown(Object sender, MouseEventArgs e)\r\n at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)\r\n at Syncfusion.WinForms.Controls.SfScrollControl.OnMouseDown(MouseEventArgs e)\r\n at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)\r\n at System.Windows.Forms.Control.WndProc(Message& m)\r\n at Syncfusion.WinForms.Controls.SfScrollControl.WndProc(Message& msg)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.RunDialog(Form form)\r\n at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)\r\n at System.Windows.Forms.Form.ShowDialog()\r\n at FreezePanes.Form1.button1_Click(Object sender, EventArgs e) in C:\\Users\\Public\\Documents\\Syncfusion\\Windows\\18.4.0.30\\DataGrid.WinForms\\Samples\\Freeze Panes\\CS\\Form1.cs:line 51" | string |
Reproduction: