Specifies whether new records can be added to a table from within a grid. Available at design time and run time.
Grid.AllowAddNew[ = lExpr]
One of the following:
New records can be added to a table from within a grid.
(Default) New records cannot be added to a table from within a grid.
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).