Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Virtual Nested Grid Functions

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

Virtual Nested Grid Functions
Link Posted: 26-Dec-2005 00:14
In your virtual nested grid example, you use a function you wrote named getoveralldepth.

how is this function differs from the node.depth property?

why in the tree exanple you use simple the node.depth and in the nested grid example you wrote tour own function?

thanks,
Guy
Link Posted: 26-Dec-2005 01:58
Hierachy of nodes in the nesting looks like following:

Nesting:
-------------------------------
FlyGrid.Rows.RootNode
|[Items]
|- NestedGridNode
|      |- RootNode (and nested viewport Rows.RootNode)
|      |      |[Items]
|      |      |-NodeBase(or NestedGridNode if second level of nesting is established)
|- NestedGridNode
|- NestedGridNode


Without nesting:
-------------------------------
FlyGrid.Rows.RootNode
|[Items]
|- Node
|     |[Items]
|     |-Node
|     |-Node
|     |-Node
|- Node
|- Node
|- Node


In this case Node in the nested grid has zero level (Depth=0), and its children will have Depth=1 etc.
Utility function GetOverallDepth helps to determine overall depth to get certain source of data.