Home - Forums-.NET - FlyGrid.Net (Windows Forms) - TreeViewColumn unhandled exception on key press

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

TreeViewColumn unhandled exception on key press
Link Posted: 16-Mar-2009 09:22
If one of the columns is a TreeViewColumn and the grid has focus, if the users presses the esc key or any key in combination with the ctrl key, you get the following unhandled exception:

System.NullReferenceException: Object reference not set to an instance of an object.
   at NineRays.Windows.Forms.FlyGrid.OnIsReadOnly(NodeBase node)
   at NineRays.Windows.Forms.Grids.HierachyColumn.OnKeyPress(FlyGrid grid, NodeBase node, KeyPressEventArgs ke)
   at NineRays.Windows.Forms.FlyGrid.OnKeyPress(KeyPressEventArgs ke)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at NineRays.Windows.Forms.FlyGrid.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)
Link Posted: 19-Mar-2009 09:04
Sorry for delay with answer, analysis took some time.
Could you provide us with sample code that demonstrate that problem? Our tests didn't show anything incorrect, probably some problem in your code.
Link Posted: 20-Mar-2009 05:06
This happens only if there are no rows added to the grid, see code below:

TreeViewColumn col1 = new TreeViewColumn("Description");

//will not give an exception if these lines are uncommented
//TreeViewNode node = new TreeViewNode("test");
Link Posted: 20-Mar-2009 05:46
Did you update your FlyGrid to the latest version? This problem has been solved about year ago.
Link Posted: 20-Mar-2009 11:46
We are using version, release date Oct 23, 2007. I searched your website and could not find, where can I get the new version from?
Link Posted: 24-Mar-2009 13:03
I'm sorry for delay with answer. We'll fix this problem to the nearest FlyGrid.Net update - in the end of this week.