ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

GroupInfo.HeaderText Property

Gets or sets the text that is displayed in the group header row.

[Visual Basic]

Public Property HeaderText As String

[C#]

public string HeaderText {get;set;}

[Delphi]

public property HeaderText: String read get_HeaderText write set_HeaderText;

Remarks

The default value is "{1}: {0}".

The text may include up to two placeholders:

            "{0}" is replaced with the value being grouped on.

            "{1}" is replaced with the group's column header.

Setting the value to Custom causes the C1TrueDBGrid.GroupText event to be raised.

Example

The following code sets the text that is displayed in the group header row to show only the value in the First column:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns("First").GroupInfo.HeaderText = "{0}"

·      C#

       this.c1TrueDBGrid1.Columns["First"].GroupInfo.HeaderText = "{0}";

·      Delphi

       Self.C1TrueDBGrid1.Columns['First'].GroupInfo.HeaderText := '{0}';

See Also

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


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