Class

# DBKit.SDK.RowEvent

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowEvent

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Represents something that happened to a row. DBKit creates a RowEvent for each row event and passes it to the HandleRowEvent method of every subscribed control and layout. The Type property says what happened, Row is the row it happened to and TableName is the name of that row's table.

## `Properties</getting_started/using_the_xojo_language/properties>`

<div class="rst-class">

table-centered_column_3

</div>

| Name                                      | Type                                  | Read-Only |
|-------------------------------------------|---------------------------------------|-----------|
| `Row<dbkit.sdk.rowevent.row>`             | `DBKit.Row</api/databases/dbkit/row>` |           |
| `TableName<dbkit.sdk.rowevent.tablename>` | `String</api/data_types/string>`      |           |
| `Type<dbkit.sdk.rowevent.type>`           | DBKit.SDK.RowEvent.Types              |           |

## `Methods</getting_started/using_the_xojo_language/methods>`

<div class="rst-class">

methods-table

</div>

| Name                                          | Parameters                                                                                                                                        | Returns |
|-----------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| `Constructor<dbkit.sdk.rowevent.constructor>` | theType As DBKit.SDK.RowEvent.Types, theRow As `DBKit.Row</api/databases/dbkit/row>` = Nil, theTableName As `String</api/data_types/string>` = "" |         |

## Property descriptions

<div id="dbkit.sdk.rowevent.row">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowEvent.Row

**Row** As `DBKit.Row</api/databases/dbkit/row>`

> The row the event is about. It can be Nil for events that are not tied to a particular row.

<div id="dbkit.sdk.rowevent.tablename">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowEvent.TableName

**TableName** As `String</api/data_types/string>`

> The name of the table the row belongs to.

<div id="dbkit.sdk.rowevent.type">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowEvent.Type

**Type** As DBKit.SDK.RowEvent.Types

> What happened to the row. See the Types table below for the values and their meanings.

## Method descriptions

<div id="dbkit.sdk.rowevent.constructor">

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowEvent.Constructor

**Constructor**(theType As DBKit.SDK.RowEvent.Types, theRow As `DBKit.Row</api/databases/dbkit/row>` = Nil, theTableName As `String</api/data_types/string>` = "")

> Creates a RowEvent with the given type, row and table name. DBKit creates the events it delivers; a control receives them rather than creating them.

## Types

The Type property is a DBKit.SDK.RowEvent.Types value:

| Types       | Description                                    |
|-------------|------------------------------------------------|
| Changed     | A value in the row changed.                    |
| Created     | A new row was created.                         |
| Deleted     | The row was deleted.                           |
| Editing     | The row entered edit mode.                     |
| Loaded      | The row was loaded and is now the current row. |
| NotSelected | The row is no longer the current row.          |
| Saved       | The row was saved.                             |
| Saving      | The row is about to be saved.                  |
| Undone      | Changes to the row were undone.                |

## Compatibility

|                       |              |
|-----------------------|--------------|
| **Project Types**     | Desktop, Web |
| **Operating Systems** | All          |

<div id="dbkit.sdk.rowevent.seealso">

<div class="seealso">

`DBKit SDK</api/databases/dbkit/sdk>` overview, `DBKit.SDK.RowEventReceiver</api/databases/dbkit/sdk/roweventreceiver>`, `DBKit.Row</api/databases/dbkit/row>`.

</div>

</div>
