ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.ChildGrid Property

Gets or sets the C1TrueDBGrid control used as a child grid in a hierarchical presentation.

[Visual Basic]

Public Property ChildGrid As C1TrueDBGrid

[C#]

public C1TrueDBGrid ChildGrid {get;set;}

[Delphi]

public property ChildGrid: C1TrueDBGrid read get_ChildGrid write set_ChildGrid;

Remarks

When the user clicks the leftmost columns expand icon (+) the associated C1TrueDBGrid control is displayed below the current cell.

Use the ChildGrid property and a C1TrueDBGrid control to implement a fully editable master-detail presentation.

Example

The following code uses the ChildGrid property to display the associated C1TrueDBGrid control below the current cell:

·      Visual Basic

       Me.C1TrueDBGrid1.ChildGrid = C1TrueDBGrid2

·      C#

       this.c1TrueDBGrid1.ChildGrid = c1TrueDBGrid2;

·      Delphi

       Self.C1TrueDBGrid1.ChildGrid := C1TrueDBGrid2;

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.