ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DisplayColumn.ButtonFooter Property

Gets or sets a value indicating whether a column footer will act like a button.

[Visual Basic]

Public Property ButtonFooter As Boolean

[C#]

public bool ButtonFooter {get;set;}

[Delphi]

public property ButtonFooter: Boolean read get_ButtonFooter write set_ButtonFooter;

Remarks

If True, the column footer depresses like a standard Windows command button when clicked by the user.

If False (the default), the column footer does not change its appearance when clicked by the user.

Typically, set the ButtonFooter property to True when wanting to perform a column-based action (such as summation) when the user clicks a column footer. Note that the C1TrueDBGrid.FootClick event always is raised when the user clicks a column footer, even if ButtonFooter is False.

Example

The following code uses the ButtonFooter property to make the column footer act like a standard Windows command button. Clicking the column footer will raise the C1TrueDBGrid.FootClick event:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(0).DisplayColumns(0).ButtonFooter = True

·      C#

       this.c1TrueDBGrid1.Splits[0].DisplayColumns[0].ButtonFooter = true;

·      Delphi

       Self.C1TrueDBGrid1.Splits[0].DisplayColumns[0].ButtonFooter := True;

See Also

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


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