ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.RowExpanded Method

Obtains the expanded state of a band for a hierarchical grid.

[Visual Basic]

Public Function RowExpanded( _

ByVal band As Integer _

) As Boolean

[C#]

public bool RowExpanded(

int band

);

[Delphi]

public function RowExpanded(

band: Int32

): Boolean;

Remarks

The RowExpanded method returns True if the specified band is expanded within the current row.

Example

The following code shows a message box when the first band is expanded:

·      Visual Basic

       If Me.C1TrueDBGrid1.RowExpanded(0) = True Then

           MessageBox.Show("The first band is expanded.")

       End If

·      C#

       if (this.c1TrueDBGrid1.RowExpanded(0) == true)

       {

           MessageBox.Show("The first band is expanded.");

       }

·      Delphi

       if (Self.C1TrueDBGrid1.RowExpanded(0) = True) then

         MessageBox.Show('The first band is expanded.');

For additional information on using bands, see Hierarchical Data Display.

See Also

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


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