ComponentOne True DBGrid for WinForms
Run-Time Interaction / Database Operations / Adding a New Record
In This Topic
    Adding a New Record
    In This Topic

    True DBGrid for WinForms' AllowAddNew property must be True in order for the user to add new records to the grid interactively. The default value is False.

    If the AllowAddNew property is True, an empty AddNew row, marked by an asterisk in the record selector column, will be displayed after the last record. The user can initiate an add operation by navigating to the AddNew row, either by clicking it or by using the DOWN ARROW key, then typing new data. The first character typed will cause the grid to insert a blank row before the AddNew row. The newly inserted blank row becomes the current row, and the grid fires the OnAddNew event.

    At this point, the new row exists only in the grid—it does not have a bookmark, and it does not yet represent a physical database record. The new row is added to the underlying data source when the user navigates to another data row or the AddNew row.

    See Also