ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.ExpandGroupRow Method

Expands the given row in GroupBy DataView.

[Visual Basic]

Public Sub ExpandGroupRow( _

ByVal row As Integer _

)

[C#]

public void ExpandGroupRow(

int row

);

[Delphi]

public procedure ExpandGroupRow(

row: Int32

);

Parameters

row

The row to expand.

Remarks

Expanding/collapsing a row in a GroupBy grid also expands/collapses the row in a split that shares the same vertical scroll group.

Example

The following code expands the third row, when DataView is set to GroupBy and the grid is grouped by a column:

·      Visual Basic

       Me.C1TrueDBGrid1.ExpandGroupRow(2)

·      C#

       this.c1TrueDBGrid1.ExpandGroupRow(2);

·      Delphi

       Self.C1TrueDBGrid1.ExpandGroupRow(2);

For a more detailed example, see the ToggleGroupRows sample on http://helpcentral.componentone.com/ProductResources.aspx.

See Also

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


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