BCGControlBar Library for .NET
GroupNode Class
Members 




Represents a group row.
Object Model
GroupNode ClassGridDataItem ClassGridDataItemCollection ClassGridDataItem ClassGridData ClassGridDataRow ClassGridCellVisualStyle ClassGridCellVisualStyle Class
Syntax
'Declaration
 
Public Class GroupNode 
   Inherits GridDataRow
'Usage
 
Dim instance As GroupNode
public class GroupNode : GridDataRow 
public __gc class GroupNode : public GridDataRow 
public ref class GroupNode : public GridDataRow 
Remarks

Group rows are created automatically by GridData when the data is grouped by a column.
Group rows are inserted into collection (special index collection) of rows (GridData.GroupIndexCollection) and in addition build up a tree (GridData.RootNodes). GroupIndexCollection is a flat representation of the tree.

Instead of working with collection of GridDataItem objects (as it does the base GridDataRow class), a group row holds only one GridDataItem (DataItem), which corresponds to a column the data is grouped by.
For example, if we have {Name, Age, Comment} data structure and group by Age, GroupNode.DataItem will be set "Age" data - an entry with index 1 in GridDataRow.ItemCollection. When the GridData builds a group, it takes the appropriate GridDataItem from the first row to be added in a group (because if these rows are in the same group, they have identical data in columns they are grouped by).

Inheritance Hierarchy

System.Object
   BCGSoft.Controls.Grid.GridDataRow
      BCGSoft.Controls.Grid.GroupNode

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GroupNode Members
BCGSoft.Controls.Grid Namespace

Send Feedback