Share via


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]

Return Value

  • 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

Applies To: Grid Control

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

Tasks

How to: Add Records to Tables

Reference

APPEND Command

RecordSourceType Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)