RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListView.OnColumnDragged Event

Occurs when a column is dragged to a new position.

Pascal
property OnColumnDragged: TNotifyEvent;
C++
__property TNotifyEvent OnColumnDragged;

Write an OnColumnDragged event handler to respond when the user drags a column to a new position. OnColumnDragged occurs after all columns are in their new positions but before the list view repaints to reflect the change. 

OnColumnClick only occurs when ViewStyle is vsReport and ShowColumnHeaders is true.

Tip: To uniquely identify columns so that you can recognize them after they are repositioned, use the list column's Tag property.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!