listview SetColumnOrders method
Return to Introduction  Previous page  Next page
Applies to
acListView and acDBListView components.  

Declaration
procedure SetColumnOrders(ColumnOrders: Array of Integer);  

Description
The SetColumnOrders method sets the orders of header items of the listview, or copies the orders from another listview.  

Example
// demonstrates how to copy the orders from ListView1 to ListView2 when the order changes  
procedure TMainForm.ListView1ColumnDragged(Sender: TObject;  
  ColumnOrders: array of Integer);  
begin  
  ListView2.SetColumnOrders(ColumnOrders);    
end;