ComponentOne True DBGrid Pro 8
OnAddNew Event

 

OnAddNew Event

Fired when a user action causes an AddNew operation.

Syntax

TDBGrid_OnAddNew ( )

Arguments

None

Remarks

The OnAddNew event occurs when an AddNew operation has been initiated by either of the following:

·      The user modifies a cell within the AddNew row. Typically, this occurs as soon as the user types a character, but may also occur as a result of a built-in radio button or combo box selection.

·      The Value or Text property of a column is set in code when the current cell is within the AddNew row.

This event is fired in both bound and unbound modes. However, it will only be fired if the grid's AllowAddNew property is True.

When the OnAddNew event is fired, the value of the AddNewMode property is 2 - AddNew Pending.

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback