Fired after the user clicks on column's header.
Type | Description | |||
Column as Column | A Column object that specifies the column being clicked. |
The ColumnClick event is fired when the user clicks the column's header. By default, the control sorts the column if the user clicks the column's header. Use the SortChildren property to sort the list by a column. Use the ItemFromPoint property to access the item from point. Use the SortOnClick property to disable sorting columns by clicking the control's header bar. Use the HeaderVisible property to specify whether the control's header bar is visible or hidden. Use the Add method to add new columns to the control.
The following VB sample prints the caption of the column being clicked:
Private Sub ComboBox1_ColumnClick(ByVal Column As EXCOMBOBOXLibCtl.IColumn) Debug.Print Column.Caption End Sub
The following C++ sample prints the caption of the column being clicked:
#include "Column.h" void OnColumnClickCombobox1(LPDISPATCH Column) { CColumn column( Column ); column.m_bAutoRelease = FALSE; OutputDebugString( column.GetCaption() ); }
The following VB.NET sample prints the caption of the column being clicked:
Private Sub AxComboBox1_ColumnClick(ByVal sender As Object, ByVal e As AxEXCOMBOBOXLib._IComboBoxEvents_ColumnClickEvent) Handles AxComboBox1.ColumnClick Debug.WriteLine(e.column.Caption) End Sub
The following C# sample prints the caption of the column being clicked:
private void axComboBox1_ColumnClick(object sender, AxEXCOMBOBOXLib._IComboBoxEvents_ColumnClickEvent e) { System.Diagnostics.Debug.WriteLine(e.column.Caption ); }
The following VFP sample prints the caption of the column being clicked:
*** ActiveX Control Event *** LPARAMETERS column with column wait window nowait .Caption endwithSyntax for ColumnClick event, /NET version, on:
private void ColumnClick(object sender,exontrol.EXCOMBOBOXLib.Column Column) { } Private Sub ColumnClick(ByVal sender As System.Object,ByVal Column As exontrol.EXCOMBOBOXLib.Column) Handles ColumnClick End Sub |
private void ColumnClick(object sender, AxEXCOMBOBOXLib._IComboBoxEvents_ColumnClickEvent e) { } void OnColumnClick(LPDISPATCH Column) { } void __fastcall ColumnClick(TObject *Sender,Excomboboxlib_tlb::IColumn *Column) { } procedure ColumnClick(ASender: TObject; Column : IColumn); begin end; procedure ColumnClick(sender: System.Object; e: AxEXCOMBOBOXLib._IComboBoxEvents_ColumnClickEvent); begin end; begin event ColumnClick(oleobject Column) end event ColumnClick Private Sub ColumnClick(ByVal sender As System.Object, ByVal e As AxEXCOMBOBOXLib._IComboBoxEvents_ColumnClickEvent) Handles ColumnClick End Sub Private Sub ColumnClick(ByVal Column As EXCOMBOBOXLibCtl.IColumn) End Sub Private Sub ColumnClick(ByVal Column As Object) End Sub LPARAMETERS Column PROCEDURE OnColumnClick(oComboBox,Column) RETURN |
<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.ComboBox.1::IColumn) end function function nativeObject_ColumnClick(Column) return |