Condividi tramite


AllowAddNew Property

Specifies whether new records can be added to a table from within a grid. Available at design time and run time.

Grid.AllowAddNew[ = lExpr]

Property Values

  • lExpr
    One of the following:
    Setting Description
    True (.T.) New records can be added to a table from within a grid.
    False (.F.) (Default) New records cannot be added to a table from within a grid.

Remarks

If AllowAddNew is set to True (.T.), you can add a new record to a table in a grid by pressing the down arrow while positioned on the last record in the grid, as long as the grid is read-write. New records cannot be added from within the grid if the grid is read-only (if the RecordSourceType is a query, a table is read-only, and so on).

See Also

APPEND | Adding Records | RecordSourceType Property

Applies To: Grid Control