Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomListView.CopySelection(TCustomListControl) Method

Copies the selection from one list view to another.

#Declaration

Delphi
procedure CopySelection(Destination: TCustomListControl);

#Parameters

Name Type
Destination TCustomListControl

#Remarks

Use CopySelection to duplicate the selection from the current list view to another one, which is specified by the Destination parameter.

The following code demonstrates using of this method:

cxListView1.CopySelection(TCustomListControl(cxListView2.InnerListView));

Note

This method creates copies of the selected items in the Items collection of the destination list view. If that list view control has no associated image lists (see the LargeImages, SmallImages and StateImages properties), then the copied items will have no associated images.

See Also