DVXP TEdit.NET 3.0

TableEditor.ProvideAutoIncrementIdCommand Event

Fired after a new row with an auto increment field is added to the database

[Visual Basic]
Public Event ProvideAutoIncrementIdCommand As ProvideAutoIncrementIdCommandEventHandler
[C#]
public event ProvideAutoIncrementIdCommandEventHandler ProvideAutoIncrementIdCommand;

Event Data

The event handler receives an argument of type ProvideAutoIncrementIdCommandEventArgs containing data related to this event. The following ProvideAutoIncrementIdCommandEventArgs properties provide information specific to this event.

PropertyDescription
AutoIncrementIdCmd The command to retrieve the autoincrement ID, e.g. 'SELECT @@IDENTY AS PK' or 'SELECT SCOPE_IDENTITY() AS PK'
Connection Open connection to the database. Must be assigned to the generated command
TableName The table to provide the command for

See Also

TableEditor Class | DVXP.DXTableEditor Namespace