Επεξεργασία

Κοινή χρήση μέσω


ListViewArray.ColumnClick Event

Definition

Occurs when the user clicks a column header within the ListView control.

public:
 event System::Windows::Forms::ColumnClickEventHandler ^ ColumnClick;
public event System.Windows.Forms.ColumnClickEventHandler ColumnClick;
member this.ColumnClick : System.Windows.Forms.ColumnClickEventHandler 
Public Custom Event ColumnClick As ColumnClickEventHandler 
Public Event ColumnClick As ColumnClickEventHandler 

Event Type

Remarks

The ColumnClick event occurs when the user clicks one of the column headers in a details view of the items in a ListView control (when the View property is set to Details). The ColumnClick event is typically handled to sort the items in the ListView, using the clicked column as the column to sort by.

For more information about how to handle events, see Handling and Raising Events.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

Applies to