Interface

# DBKit.SDK.RowEventReceiver

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowEventReceiver

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

## Description

The root of the DBKit SDK interfaces. DBKit reports what happens to a row by calling HandleRowEvent with a `DBKit.SDK.RowEvent</api/databases/dbkit/sdk/rowevent>` describing it.

Every control interface includes this one, through `DBKit.SDK.RowBase</api/databases/dbkit/sdk/rowbase>`, and `DBKit.SDK.Layout</api/databases/dbkit/sdk/layout>` implements it as well. A control reacts to the events it cares about and ignores the rest.

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

<div class="rst-class">

methods-table

</div>

| Name                                                        | Parameters                                                          | Returns |
|-------------------------------------------------------------|---------------------------------------------------------------------|---------|
| `HandleRowEvent<dbkit.sdk.roweventreceiver.handlerowevent>` | theEvent As `DBKit.SDK.RowEvent</api/databases/dbkit/sdk/rowevent>` |         |

## Method descriptions

<div id="dbkit.sdk.roweventreceiver.handlerowevent">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowEventReceiver.HandleRowEvent

**HandleRowEvent**(theEvent As `DBKit.SDK.RowEvent</api/databases/dbkit/sdk/rowevent>`)

> Called by DBKit when something happens to the row the control is working with. The event's Type property says what happened: the row was loaded, entered edit mode, changed, is about to be saved, was saved, and so on. Its Row property is the row the event is about, which can be Nil for events that are not tied to a particular row.
>
> How a control reacts depends on its kind. A data control typically reloads its value from the row when the event says the row was loaded or changed. See the `DBKit.SDK.RowEvent</api/databases/dbkit/sdk/rowevent>` page for the full list of event types.

## Notes

The methods an interface requires can be implemented as Private, as the Rating example control in the DBKit example project does. DBKit works with the control through the interface, so the methods do not need to be public on the control class itself.

## Compatibility

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

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

<div class="seealso">

`DBKit SDK</api/databases/dbkit/sdk>` overview, `DBKit.SDK.RowEvent</api/databases/dbkit/sdk/rowevent>`, `DBKit.SDK.RowBase</api/databases/dbkit/sdk/rowbase>`.

</div>

</div>
