event ColumnClick (Column as Column)

Fired after the user clicks on column's header.

 TypeDescription 
   Column as Column A Column object that indicates clicked column.  

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. The control fires Sort method when the control sorts a column. Use the MouseDown or MouseUp event to notify the control when the user clicks the control, including the columns. 

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

Private Sub Tree1_ColumnClick(ByVal Column As EXTREELibCtl.IColumn)
    Debug.Print Column.Caption
End Sub

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

#include "Column.h"
void OnColumnClickTree1(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 AxTree1_ColumnClick(ByVal sender As Object, ByVal e As AxEXTREELib._ITreeEvents_ColumnClickEvent) Handles AxTree1.ColumnClick
    MessageBox.Show(e.column.Caption)
End Sub

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

private void axTree1_ColumnClick(object sender, AxEXTREELib._ITreeEvents_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
 

Send comments on this topic.
© 1999-2008 Exontrol Inc, Software. All rights reserved.