Hi,
we integrated GridView into a application and added a standard ContextMenu. When clicking on items in the GridView everything seems perfectly fine, but a click onto free space in the GridView results in an Exception:
Object reference not set to an instance of an object. |
System.NullReferenceException: Object reference not set to an instance of an object |
at |
Telerik.WinControls.UI.BaseGridBehavior.OnMOuseDownRight(MouseEventArgs e) |
at |
Telerik.WinControls.UI.BaseGridBehavior.OnMOuseDown(MouseEventArgs e) |
at |
Telerik.WinControls.UI.RadGridView.OnMOuseDownRight(MouseEventArgs e) |
at |
System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clickt) |
at System.Windows.Forms.Control.WndProc(Message& m) |
at System.Windows.Forms.ScrollableControl.WndProc(Message& m) |
at Telerik.WinControls.RadControl.WndProc(Message& m) |
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) |
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) |
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) |
We also discovered what seems to be a major problem to the GridView Designer. If you add a System.Windows.Forms.ContextMenu to the GridView using the Designer, save this state and try to re-open the Designer Visual Studio suddenly crashes..
Best wishes,
Fabian Becker
mbi GmbH