Visual Basic: DataGrid Control
Returns a value that describes the location of the current cell with respect to the grid's AddNew row. Read-only at run time and not available at design time.
The AddNewMode property syntax has these parts:
|object||An object expression that evaluates to an object in the Applies To list.|
The AddNewMode property returns one of the following:
|dbgNoAddNew||0||The current cell is not in the last row, and no AddNew operation is pending.|
|dbgAddNewCurrent||1||The current cell is in the last row, but no AddNew operation is pending.|
|dbgAddNewPending||2||The current cell is in the next to last row as a result of a pending AddNew operation initiated by the user through the grid's user interface, or by code as a result of setting the Value or Text properties of a column.|
If the AllowAddNew property is True, the last row displayed in the grid is left blank to permit users to enter new records. If the AllowAddNew property is False, the blank row is not displayed, and AddNewMode always returns 0.