[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Grids' (#lcl)

# TCustomGrid.ValidateOnSetSelection

Controls validation when the text for the selected cell is changed.

## Declaration

Source position: grids.pas line 1300

`protected property TCustomGrid.ValidateOnSetSelection : Boolean read FValidateOnSetSelection write FValidateOnSetSelection;`

## Description

ValidateOnSetSelection is a Boolean property used to control validation performed when the text for the selected cell is changed in the grid. The default value for ValidateOnSetSelection is False, as assigned in the constructor for the class.

ValidateOnSetSelection is used in the SelectionSetText method to determine if the ValidateEntry method is called to validate the content in the cell.

## See also

TCustomGrid.ValidateEntry |  | Validates the value for the specified cell.
TCustomGrid.OnValidateEntry |  | Event handler signalled to perform validation for a cell value.