Skip to content

pbAllowInsertRow - cCJGrid

Determines if row insertion is allowed

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbAllowInsertRow
Access Type Syntax
Read Access: Get pbAllowInsertRow to BooleanVariable
Write Access: Set pbAllowInsertRow to BooleanVariable/Value

Description

pbAllowInsertRow determines if rows can be inserted above the SelectedRow. By default, this is true and row insertion is allowed.

A row is inserted by sending the Request_InsertRow message. If pbAllowInsertRow is false, a row insertion will not be attempted, although a row append may be attempted (see Request_InsertRow for a full description).

If pbAllowInsertRow is true, the CanAddRow function will be called. If this returns false, a row insert is not attempted. CanAddRow returns False if pbReadOnly is true or if the datasource object itself does not allow the adding of rows.