Interface

# DBKit.SDK.RowActionControl

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowActionControl

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

## Description

Implemented by a control that acts on the layout's current row rather than displaying a column of it, such as the built-in NewButton, DeleteButton and navigation buttons. It extends `DBKit.SDK.RowBase</api/databases/dbkit/sdk/rowbase>`, so a control implementing it also provides the RowBase methods and receives row events through `DBKit.SDK.RowEventReceiver</api/databases/dbkit/sdk/roweventreceiver>`.

DBKit keeps an action control in step with the row in two ways: it tells the control when the row enters and leaves edit mode, and it tells the control when to enable and disable itself, identifying which action the change applies to.

The button that switches a row in and out of edit mode implements `DBKit.SDK.RowActionEditControl</api/databases/dbkit/sdk/rowactioneditcontrol>` instead, which extends this interface.

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

<div class="rst-class">

methods-table

</div>

| Name                                                                | Parameters                                                                       | Returns |
|---------------------------------------------------------------------|----------------------------------------------------------------------------------|---------|
| `CurrentRowEditMode<dbkit.sdk.rowactioncontrol.currentroweditmode>` | IsBeingEdited As `Boolean</api/data_types/boolean>`                              |         |
| `SetEnabledState<dbkit.sdk.rowactioncontrol.setenabledstate>`       | state As `Boolean</api/data_types/boolean>`, type As DBKit.Internals.ActionTypes |         |

## Method descriptions

<div id="dbkit.sdk.rowactioncontrol.currentroweditmode">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowActionControl.CurrentRowEditMode

**CurrentRowEditMode**(IsBeingEdited As `Boolean</api/data_types/boolean>`)

> Called by DBKit when the layout's current row enters or leaves edit mode, so the control can update its own state or appearance to match.

<div id="dbkit.sdk.rowactioncontrol.setenabledstate">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowActionControl.SetEnabledState

**SetEnabledState**(state As `Boolean</api/data_types/boolean>`, type As DBKit.Internals.ActionTypes)

> Called by DBKit to enable or disable the control. The *type* parameter identifies which action the change applies to, so a control that serves more than one action can respond to its own. Its values are EditButton, DeleteButton, NewButton, UndoButton, FirstRowButton, PreviousRowButton, NextRowButton, LastRowButton and BackButton.

## Notes

The methods an interface requires can be implemented as Private. 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.rowactioncontrol.seealso">

<div class="seealso">

`DBKit SDK</api/databases/dbkit/sdk>` overview, `DBKit.SDK.RowActionEditControl</api/databases/dbkit/sdk/rowactioneditcontrol>`.

</div>

</div>
