event ColumnClick (Column as Column)
Fired after the user clicks on column's header.

TypeDescription
Column as Column A Column object whose header has been clicked.

The ColumnClick event is fired when the user clicks the column's header. By default, the control sorts by the column when user clicks the column's header. Use the SortOnClick property to specify the operation that control does when user clicks the column's caption. Use the ColumnFromPoint property to access the column from point. Use the ItemFromPoint property to access the item from point. Use the MouseDown or MouseUp event to notify the control when the user clicks the control, including the columns.

Syntax for ColumnClick event, /NET version, on:

private void ColumnClick(object sender,exontrol.EXGRIDLib.Column Column)
{
}

Private Sub ColumnClick(ByVal sender As System.Object,ByVal Column As exontrol.EXGRIDLib.Column) Handles ColumnClick
End Sub

Syntax for ColumnClick event, /COM version, on:

private void ColumnClick(object sender, AxEXGRIDLib._IGridEvents_ColumnClickEvent e)
{
}

void OnColumnClick(LPDISPATCH Column)
{
}

void __fastcall ColumnClick(TObject *Sender,Exgridlib_tlb::IColumn *Column)
{
}

procedure ColumnClick(ASender: TObject; Column : IColumn);
begin
end;

procedure ColumnClick(sender: System.Object; e: AxEXGRIDLib._IGridEvents_ColumnClickEvent);
begin
end;

begin event ColumnClick(oleobject Column)
end event ColumnClick

Private Sub ColumnClick(ByVal sender As System.Object, ByVal e As AxEXGRIDLib._IGridEvents_ColumnClickEvent) Handles ColumnClick
End Sub

Private Sub ColumnClick(ByVal Column As EXGRIDLibCtl.IColumn)
End Sub

Private Sub ColumnClick(ByVal Column As Object)
End Sub

LPARAMETERS Column

PROCEDURE OnColumnClick(oGrid,Column)
RETURN

Syntax for ColumnClick event, /COM version (others), on:

<SCRIPT EVENT="ColumnClick(Column)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function ColumnClick(Column)
End Function
</SCRIPT>

Procedure OnComColumnClick Variant llColumn
	Forward Send OnComColumnClick llColumn
End_Procedure

METHOD OCX_ColumnClick(Column) CLASS MainDialog
RETURN NIL

void onEvent_ColumnClick(COM _Column)
{
}

function ColumnClick as v (Column as OLE::Exontrol.Grid.1::IColumn)
end function

function nativeObject_ColumnClick(Column)
return

The following VB sample displays the caption of the column being clicked:

Private Sub Grid1_ColumnClick(ByVal Column As EXGRIDLibCtl.IColumn)
    Debug.Print Column.Caption
End Sub

The following C++ sample displays the caption of the column being clicked:

#include "Column.h"
void OnColumnClickGrid1(LPDISPATCH Column) 
{
	CColumn column( Column );
	column.m_bAutoRelease = FALSE;
	MessageBox( column.GetCaption() );
}

The following VB.NET sample displays the caption of the column being clicked:

Private Sub AxGrid1_ColumnClick(ByVal sender As Object, ByVal e As AxEXGRIDLib._IGridEvents_ColumnClickEvent) Handles AxGrid1.ColumnClick
    MessageBox.Show(e.column.Caption)
End Sub

The following C# sample displays the caption of the column being clicked:

private void axGrid1_ColumnClick(object sender, AxEXGRIDLib._IGridEvents_ColumnClickEvent e)
{
	MessageBox.Show(e.column.Caption);
}

The following VFP sample displays the caption of the column being clicked:

*** ActiveX Control Event ***
LPARAMETERS column

with column
	wait window nowait .Caption
endwith