ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Adding a New Record

True DBGrid's 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.


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.