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!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

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

Document
NameValueType
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

I have an example attached.

Reproduction:

  1. Open FreezePanes_NETCore.sln
  2. Left click first row
  3. Scroll to right
  4. Right click "Year"
  5. Error 

I think the actually problem is the right mouse click in combination with the column reordering

Thank you for your help in advance.

Best regards,
Willy Candra