Skip to main content

TcxPivotGridViewDataSelection.MakeNew(TRect) Method

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

Declaration

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