Contents - Index - Previous - Next


SetSelection method



Applies to
TProfGrid component

Declaration
function SetSelection(ALeft, ATop, ARight, ABottom: Integer): Boolean;

Description

Changes the current selection to a rectangular region with the specified coordinates.

Use SetSelection to programmatically select a range of cells in the grid. The parameters are the visible row and column coordinates of the upper left and bottom right cells in the new selected region.