"If the AllowAddNew and AllowUpdate properties of the grid are True, then
users can add new records to the grid, and you must implement the
UnboundAddData event. The syntax of this event is as follows:
Private Sub DBGrid1_UnboundAddData(ByVal RowBuf As RowBuffer,_
NewRowBookmark As Variant)
The NewRowBookmark argument is initially Null. However, before returning
from this event, you must set it to a bookmark that uniquely identifies the
newly added row. If you do not set the value of NewRowBookmark, the add
operation will fail and the grid will not allow its current row to change."
From the Apex DBGrid help file
There is a tad more to all this, with Gotchas around every corner. <grin>. I
suggest you down load the following:
"DBGrid Tutorial and Help"
It contains the above help file and 10 examples.
All the tutorial projects are easier to work with if you initially create a
single group file.