ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

GroupInfo.Interval Property

Gets or sets the way rows are grouped.

[Visual Basic]

Public Property Interval As GroupIntervalEnum

[C#]

public GroupIntervalEnum Interval {get;set;}

[Delphi]

public property Interval: GroupIntervalEnum read get_Interval write set_Interval;

Example

The following code sets the Interval property to GroupIntervalEnum.Year:

·      Visual Basic

       ' Set the GroupInfo.Interval of the HireDate column to Year.

       Me.C1TrueDBGrid1.Columns("HireDate").GroupInfo.Interval = C1.Win.C1TrueDBGrid.GroupIntervalEnum.Year

·      C#

       // Set the GroupInfo.Interval of the HireDate column to Year.

       this.c1TrueDBGrid1.Columns["HireDate"].GroupInfo.Interval = C1.Win.C1TrueDBGrid.GroupIntervalEnum.Year;

·      Delphi

       // Set the GroupInfo.Interval of the HireDate column to Year.

       Self.C1TrueDBGrid1.Columns['HireDate'].GroupInfo.Interval := C1.Win.C1TrueDBGrid.GroupIntervalEnum.Year;

For a detailed example using the Interval property, see Group Rows by Year.

See Also

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


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