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

TcxPivotGridViewDataSelection.MakeNew(TRect) Method

Clears the current selection, and then selects a specified cell region.

#Declaration

Delphi
procedure MakeNew(const ARegion: TRect); virtual;

#Parameters

Name Type
ARegion TRect

#Remarks

This method clears the Regions collection and adds the region passed as the ARegion parameter to this collection.

Note

If the Regions collection already contains the specified region, the collection is not changed. If regions within this collection only include the specified region and there’s no identical region within the collection, the specified region will be added to it.

To programmatically select data cells at location starting from the intersection of the first column and first row, and ending at the intersection of the fourth column and fifth row, call the MakeNew method as shown below:

PivotGrid.ViewData.Selection.MakeNew(Rect(0, 0, 3, 4));
See Also