ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.FootClick Event

Occurs when the user clicks on the column footer.

[Visual Basic]

Public Event FootClick As ColEventHandler

[C#]

public event ColEventHandler FootClick

[Delphi]

public property FootClick: ColEventHandler read remove_FootClick write add_FootClick;

Example

The following code sorts the column when the column footer is clicked:

·      Visual Basic

Private Sub C1TrueDBDropdown1_FootClick(ByVal sender As System.Object, ByVal e As C1.Win. C1TrueDBGrid.ColEventArgs) Handles c1TrueDBDropdown1.FootClick

           ' Get the display column that was clicked.

           Dim dc As C1.Win.C1TrueDBGrid.C1DisplayColumn = Me.C1TrueDBGrid1.Splits(0).DisplayColumns(e.ColIndex)

           ' Add new sort order code here.

           ' Add code to build our sort condition.

           ' Add code to sort it.

           ' Add code to save the sort state.

       End Sub

·      C#

private void c1TrueDBDropdown1_FootClick(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)

       {

           // Get the display column that was clicked.

           C1.Win.C1TrueDBGrid.C1DisplayColumn dc = this.c1TrueDBGrid1.Splits[0].DisplayColumns[e.ColIndex];

           // Add new sort order code here.

           {

           }

           // Add code to build sort condition.

           // Add code to sort it.

           // Add code to save the sort state.

       }

·      Delphi

       procedure C1TrueDBDropdown1_FootClick(sender: System.Object; e: C1.Win.C1TrueDBGrid.ColEventArgs);

       var

         dc : C1.Win.C1TrueDBGrid.C1DisplayColumn;

       begin

         // Get the display column that was clicked.

         dc := Self.c1TrueDBGrid1.Splits[0].DisplayColumns[e.ColIndex];

         // Add new sort order code here.

         // Add code to build sort condition.

         // Add code to sort it.

         // Add code to save the sort state.

       end;

Note: In order for the column footers to appear the ColumnFooters property must be set to True.

See Also

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


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