Home - Forums-.NET - FlyGrid.Net (Windows Forms) - One more FitMode.Spring bug

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

One more FitMode.Spring bug
Link Posted: 07-Apr-2006 01:31
Hi,

I've also had this bug forever. When I load my columns the first time, the last column is narrower than the others although it's FitMode.Spring as well.
See this video as proof:

http://www.kingvest.de/bugs/sizing4.mov

See, how the last column is too narrow when the columns are initially loaded. After I switch the column layout and back to the original (this is using the exact same code that also loads the columns initially) the width is correct.
Link Posted: 08-Apr-2006 07:27
I saw this movie, but it shows only logo of your app.
Link Posted: 08-Apr-2006 07:36
hm, looks like VLC has issues playing it.
Try http://www.kingvest.de/bugs/sizing4.avi
Link Posted: 08-Apr-2006 07:51
Download latest v1.4, it should works correctly with the latest update.
Link Posted: 08-Apr-2006 08:16
just downloaded it. The sizing seems to work but you introduced a critical new bug.
I'm not sure yet what exactly it is but I'm getting an ArgumentOutOfRangeException when I try to set the visibility of a node. This worked perfectly fine before 1.4.

It's very strange:
if (index - i > 0 && count <= nodesToDisplay)
                        {
                            node.Items[index - i].Hidden = false;

                            count++;
                        }

this array holds 17 nodes and it throws an exception although the index is at 9 and i at 0
Link Posted: 08-Apr-2006 08:36
did you checked index in the
node.Items[index - i] = false;

?

May be index-i produce incorrect value?
Link Posted: 08-Apr-2006 08:41
As I said: this array holds 17 nodes and it throws an exception although the index is at 9 and i at 0

Also, the code worked perfectly fine right before I installed the new grid
Link Posted: 08-Apr-2006 10:12
I just tried the old grid assemblies again and with them the code works fine. Switched backed to the new ones and it fails again. Please look into this ASAP
Link Posted: 08-Apr-2006 10:23
Can you provide me with a stacktrace of exception?
Link Posted: 08-Apr-2006 10:29
mscorlib.dll!System.Collections.ArrayList.this[int].get(int index) + 0x76 bytes  
  NineRays.FlyGrid.dll!NineRays.Collections.NodeCollection.this[int].get(int index = -1) + 0x28 bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.Node.OnGetLast() + 0x33 bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.NodeBase.GetLast() + 0x1c bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.NodeBase.GetPrev() + 0x3c bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.Rows.8Q(NineRays.Windows.Forms.Data.NodeBase  = {NCompass.OptionChainNode}) + 0x237 bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.Rows.8i(object  = {NineRays.Windows.Forms.Data.RootNode}, NineRays.Windows.Forms.Data.NodeBase  = {NCompass.OptionChainNode}) + 0x24 bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.RootNode.4B(NineRays.Windows.Forms.Data.NodeBase  = {NCompass.OptionChainNode}) + 0x2b bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.NodeBase.OnHiddenChange() + 0x2f bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.NodeBase.Hidden.set(bool value = false) + 0x79 bytes  
>  NCompass.exe!NCompass.Analytics.OptionChainGrid.SetStrikeVisibility(NineRays.Windows.Forms.Data.NodeBase node = {NCompass.Analytics.GridNode}) Line 750 + 0x28 bytes  C#
  NCompass.exe!NCompass.Analytics.OptionChainGrid.OnNodeExpandChange(object sender = {NineRays.Windows.Forms.Data.Rows}, NineRays.Windows.Forms.Data.NodeBase node = {NCompass.Analytics.GridNode}) Line 683 + 0xb bytes  C#
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.Rows.8k(NineRays.Windows.Forms.Data.NodeBase  = {NCompass.Analytics.GridNode}, bool  = true) + 0x50 bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.RootNode.4b(NineRays.Windows.Forms.Data.NodeBase  = {NCompass.Analytics.GridNode}, bool  = true) + 0x30 bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.Data.NodeBase.Expanded.set(bool value = true) + 0x7a bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.FlyGrid.OnNodeOutlineClick(NineRays.Windows.Forms.Grids.FlyGridViewPort port = {NineRays.Windows.Forms.Grids.FlyGridViewPort}, NineRays.Windows.Forms.Data.NodeBase node = {NCompass.Analytics.GridNode}, int col = 7) + 0x6e bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.FlyGrid.OnMouseDown(System.Windows.Forms.MouseEventArgs me = {X = 542 Y = 26 Button = Left}) + 0x1a07 bytes  
  NCompass.exe!NCompass.Analytics.OptionChainGrid.OnMouseDown(System.Windows.Forms.MouseEventArgs me = {X = 542 Y = 26 Button = Left}) Line 876 + 0xb bytes  C#
  System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseDown(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks) + 0xe2 bytes  
  System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x52d bytes  
  NineRays.FlyGrid.dll!NineRays.Windows.Forms.FlyGrid.WndProc(ref System.Windows.Forms.Message m = {msg=0x201 (WM_LBUTTONDOWN) hwnd=0x12084e wparam=0x1 lparam=0x1a021e result=0x0}) + 0x2ba bytes  
  System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0xd bytes  
  System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0xd6 bytes  
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 513, System.IntPtr wparam, System.IntPtr lparam) + 0x75 bytes  
  [Native to Managed Transition]  
  [Managed to Native Transition]  
  System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(int dwComponentID, int reason = -1, int pvLoopData = 0) + 0x2ea bytes  
  System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason = -1, System.Windows.Forms.ApplicationContext context = {System.Windows.Forms.ApplicationContext}) + 0x17d bytes  
  System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) + 0x53 bytes  
  System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context) + 0x15 bytes  
  NCompass.exe!NCompass.NCompassShellApplication.Main() Line 66 + 0xb bytes  C#
  [Native to Managed Transition]  
  [Managed to Native Transition]  
  mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x32 bytes  
  Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x2b bytes  
  mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x3b bytes  
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x81 bytes  
  mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x40 bytes