Interface

# DBKit.SDK.RowsListControl

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl

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

## Description

Implemented by a control that displays many rows at once, such as `DBKit.Table</api/databases/dbkit/table>`. It is the largest of the SDK interfaces, because the control takes over everything a list of rows involves: DBKit hands it the rows to display, asks it which row is selected and which rows have changed, and tells it to add, reload and remove rows as the layout's data changes.

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>`.

Writing a control of this kind is the advanced case; most developers never need to. DBKit.Table is the implementation the built-in layouts work with.

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

<div class="rst-class">

methods-table

</div>

| Name                                                                                     | Parameters                                                                                                                                                                            | Returns                               |
|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------|
| `AddRowsToList<dbkit.sdk.rowslistcontrol.addrowstolist>`                                 | rows As RowSet, primaryKeyColumnName As `String</api/data_types/string>`                                                                                                              |                                       |
| `AddRowToList<dbkit.sdk.rowslistcontrol.addrowtolist>`                                   | row As `DBKit.Row</api/databases/dbkit/row>` = Nil                                                                                                                                    |                                       |
| `ChangedRows<dbkit.sdk.rowslistcontrol.changedrows>`                                     |                                                                                                                                                                                       | Dictionary                            |
| `ChangedRowsUpdated<dbkit.sdk.rowslistcontrol.changedrowsupdated>`                       |                                                                                                                                                                                       | `Boolean</api/data_types/boolean>`    |
| `ClearChangedRows<dbkit.sdk.rowslistcontrol.clearchangedrows>`                           |                                                                                                                                                                                       |                                       |
| `CurrentRow<dbkit.sdk.rowslistcontrol.currentrow>`                                       |                                                                                                                                                                                       | `DBKit.Row</api/databases/dbkit/row>` |
| `FormatRow<dbkit.sdk.rowslistcontrol.formatrow>`                                         | index As `Integer</api/data_types/integer>`                                                                                                                                           |                                       |
| `GetColumnNames<dbkit.sdk.rowslistcontrol.getcolumnnames>`                               |                                                                                                                                                                                       | `String</api/data_types/string>`      |
| `GetForeignKeyColumnName<dbkit.sdk.rowslistcontrol.getforeignkeycolumnname>`             |                                                                                                                                                                                       | `String</api/data_types/string>`      |
| `GetLastAddedRowIndex<dbkit.sdk.rowslistcontrol.getlastaddedrowindex>`                   |                                                                                                                                                                                       | `Integer</api/data_types/integer>`    |
| `GetLastRowIndex<dbkit.sdk.rowslistcontrol.getlastrowindex>`                             |                                                                                                                                                                                       | `Integer</api/data_types/integer>`    |
| `GetOrderBy<dbkit.sdk.rowslistcontrol.getorderby>`                                       |                                                                                                                                                                                       | `String</api/data_types/string>`      |
| `GetRowCount<dbkit.sdk.rowslistcontrol.getrowcount>`                                     |                                                                                                                                                                                       | `Integer</api/data_types/integer>`    |
| `GetSelectedRowIndex<dbkit.sdk.rowslistcontrol.getselectedrowindex>`                     |                                                                                                                                                                                       | `Integer</api/data_types/integer>`    |
| `IsValidColumnName<dbkit.sdk.rowslistcontrol.isvalidcolumnname>`                         | columnName As `String</api/data_types/string>`, tableName As `String</api/data_types/string>` = ""                                                                                    | `Boolean</api/data_types/boolean>`    |
| `LoadRelatedRows<dbkit.sdk.rowslistcontrol.loadrelatedrows>`                             | currentRow As `DBKit.Row</api/databases/dbkit/row>`                                                                                                                                   |                                       |
| `ManageRowChangedEvent<dbkit.sdk.rowslistcontrol.managerowchangedevent>`                 | index As `Integer</api/data_types/integer>`, columnIndex As `Integer</api/data_types/integer>` = -1, rowEditMode As `Boolean</api/data_types/boolean>` = `False</api/language/false>` |                                       |
| `MoveFocusToCellAt<dbkit.sdk.rowslistcontrol.movefocustocellat>`                         | row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`                                                                                               |                                       |
| `NewRow<dbkit.sdk.rowslistcontrol.newrow>`                                               |                                                                                                                                                                                       |                                       |
| `PrimaryKeyAt<dbkit.sdk.rowslistcontrol.primarykeyat>`                                   | index As `Integer</api/data_types/integer>`                                                                                                                                           | `String</api/data_types/string>`      |
| `PrimaryKeyAt<dbkit.sdk.rowslistcontrol.primarykeyat>`                                   | index As `Integer</api/data_types/integer>`, Assigns value As `String</api/data_types/string>`                                                                                        |                                       |
| `PrimaryKeyColumnNameForTable<dbkit.sdk.rowslistcontrol.primarykeycolumnnamefortable>`   | tableName As `String</api/data_types/string>`                                                                                                                                         | `String</api/data_types/string>`      |
| `PrimaryKeyRowIndex<dbkit.sdk.rowslistcontrol.primarykeyrowindex>`                       | primaryKey As `String</api/data_types/string>`                                                                                                                                        | `Integer</api/data_types/integer>`    |
| `ReloadRow<dbkit.sdk.rowslistcontrol.reloadrow>`                                         | index As `Integer</api/data_types/integer>`                                                                                                                                           |                                       |
| `RemoveAllRows<dbkit.sdk.rowslistcontrol.removeallrows>`                                 |                                                                                                                                                                                       |                                       |
| `RemoveLayoutAt<dbkit.sdk.rowslistcontrol.removelayoutat>`                               | index As `Integer</api/data_types/integer>`                                                                                                                                           |                                       |
| `RemoveRowAt<dbkit.sdk.rowslistcontrol.removerowat>`                                     | index As `Integer</api/data_types/integer>`, immediately As `Boolean</api/data_types/boolean>` = `False</api/language/false>`                                                         |                                       |
| `SetAllowSelectionChangedEvent<dbkit.sdk.rowslistcontrol.setallowselectionchangedevent>` | allow As `Boolean</api/data_types/boolean>` = `True</api/language/true>`                                                                                                              |                                       |
| `SetSelectedRowIndex<dbkit.sdk.rowslistcontrol.setselectedrowindex>`                     | index As `Integer</api/data_types/integer>`                                                                                                                                           |                                       |
| `UpdateRow<dbkit.sdk.rowslistcontrol.updaterow>`                                         | row As `DBKit.Row</api/databases/dbkit/row>`, index As `Integer</api/data_types/integer>`                                                                                             |                                       |

## Method descriptions

<div id="dbkit.sdk.rowslistcontrol.addrowstolist">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.AddRowsToList

**AddRowsToList**(rows As RowSet, primaryKeyColumnName As `String</api/data_types/string>`)

> Called by DBKit to give the control a set of rows to display, as produced by a query. *primaryKeyColumnName* is the name of the primary key column in the RowSet.

<div id="dbkit.sdk.rowslistcontrol.addrowtolist">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.AddRowToList

**AddRowToList**(row As `DBKit.Row</api/databases/dbkit/row>` = Nil)

> Called by DBKit to add a single row to the rows the control displays.

<div id="dbkit.sdk.rowslistcontrol.changedrows">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.ChangedRows

**ChangedRows**() As Dictionary

> Returns the rows that have been edited in the control and not yet saved.

<div id="dbkit.sdk.rowslistcontrol.changedrowsupdated">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.ChangedRowsUpdated

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

> Called by DBKit when the layout is saved, to write the control's changed rows to the database. Returns True if the changes were written successfully.

<div id="dbkit.sdk.rowslistcontrol.clearchangedrows">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.ClearChangedRows

**ClearChangedRows**()

> Called by DBKit to discard the control's record of edited rows, for example after they have been saved or undone.

<div id="dbkit.sdk.rowslistcontrol.currentrow">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.CurrentRow

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

> Returns the control's currently selected row, or Nil if no row is selected.

<div id="dbkit.sdk.rowslistcontrol.formatrow">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.FormatRow

**FormatRow**(index As `Integer</api/data_types/integer>`)

> Called by DBKit to have the control apply its formatting to the row at *index*.

<div id="dbkit.sdk.rowslistcontrol.getcolumnnames">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.GetColumnNames

**GetColumnNames**() As `String</api/data_types/string>`

> Returns the names of the columns the control displays, separated by commas. DBKit uses them to build the query that loads the control's rows.

<div id="dbkit.sdk.rowslistcontrol.getforeignkeycolumnname">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.GetForeignKeyColumnName

**GetForeignKeyColumnName**() As `String</api/data_types/string>`

> Returns the name of the foreign key column that relates the control's table to its layout's table, when the control displays related rows.

<div id="dbkit.sdk.rowslistcontrol.getlastaddedrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.GetLastAddedRowIndex

**GetLastAddedRowIndex**() As `Integer</api/data_types/integer>`

> Returns the index of the row most recently added to the control, or -1 if no row has been added.

<div id="dbkit.sdk.rowslistcontrol.getlastrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.GetLastRowIndex

**GetLastRowIndex**() As `Integer</api/data_types/integer>`

> Returns the index of the control's last row.

<div id="dbkit.sdk.rowslistcontrol.getorderby">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.GetOrderBy

**GetOrderBy**() As `String</api/data_types/string>`

> Returns the ordering the control's rows are sorted by, as used in the query that loads them.

<div id="dbkit.sdk.rowslistcontrol.getrowcount">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.GetRowCount

**GetRowCount**() As `Integer</api/data_types/integer>`

> Returns the number of rows the control is displaying.

<div id="dbkit.sdk.rowslistcontrol.getselectedrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.GetSelectedRowIndex

**GetSelectedRowIndex**() As `Integer</api/data_types/integer>`

> Returns the index of the control's selected row, or -1 if no row is selected.

<div id="dbkit.sdk.rowslistcontrol.isvalidcolumnname">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.IsValidColumnName

**IsValidColumnName**(columnName As `String</api/data_types/string>`, tableName As `String</api/data_types/string>` = "") As `Boolean</api/data_types/boolean>`

> Returns True if *columnName* is a column of the given table. When *tableName* is empty, the control's own table is meant. DBKit asks this when it builds the query that loads the control's rows, so that only columns that exist are included.

<div id="dbkit.sdk.rowslistcontrol.loadrelatedrows">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.LoadRelatedRows

**LoadRelatedRows**(currentRow As `DBKit.Row</api/databases/dbkit/row>`)

> Called by DBKit when the control displays rows related to its layout's table: it loads the rows related to *currentRow*, the layout's current row.

<div id="dbkit.sdk.rowslistcontrol.managerowchangedevent">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.ManageRowChangedEvent

**ManageRowChangedEvent**(index As `Integer</api/data_types/integer>`, columnIndex As `Integer</api/data_types/integer>` = -1, rowEditMode As `Boolean</api/data_types/boolean>` = `False</api/language/false>`)

> Called by DBKit when a value in the control's row at *index* has changed, so the control can record the change and the layout can be told. *columnIndex* is the column that changed, or -1 when the change is not tied to one column; *rowEditMode* says whether the row is being edited.

<div id="dbkit.sdk.rowslistcontrol.movefocustocellat">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.MoveFocusToCellAt

**MoveFocusToCellAt**(row As `Integer</api/data_types/integer>`, column As `Integer</api/data_types/integer>`)

> Called by DBKit to move the editing focus to the cell at the given row and column.

<div id="dbkit.sdk.rowslistcontrol.newrow">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.NewRow

**NewRow**()

> Called by DBKit to have the control create a new row, ready to be edited.

<div id="dbkit.sdk.rowslistcontrol.primarykeyat">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.PrimaryKeyAt

**PrimaryKeyAt**(index As `Integer</api/data_types/integer>`) As `String</api/data_types/string>`

**PrimaryKeyAt**(index As `Integer</api/data_types/integer>`, Assigns value As `String</api/data_types/string>`)

> Returns, or sets, the primary key value of the row at *index*.

<div id="dbkit.sdk.rowslistcontrol.primarykeycolumnnamefortable">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.PrimaryKeyColumnNameForTable

**PrimaryKeyColumnNameForTable**(tableName As `String</api/data_types/string>`) As `String</api/data_types/string>`

> Returns the name of the primary key column of the given table. DBKit asks this when it builds the query that loads the control's rows, so the primary key column is always included.

<div id="dbkit.sdk.rowslistcontrol.primarykeyrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.PrimaryKeyRowIndex

**PrimaryKeyRowIndex**(primaryKey As `String</api/data_types/string>`) As `Integer</api/data_types/integer>`

> Returns the index of the row whose primary key is *primaryKey*, or -1 if the control has no such row.

<div id="dbkit.sdk.rowslistcontrol.reloadrow">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.ReloadRow

**ReloadRow**(index As `Integer</api/data_types/integer>`)

> Called by DBKit to have the control reload the row at *index*, so the displayed values match the row's current values.

<div id="dbkit.sdk.rowslistcontrol.removeallrows">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.RemoveAllRows

**RemoveAllRows**()

> Called by DBKit to have the control remove every row it is displaying.

<div id="dbkit.sdk.rowslistcontrol.removelayoutat">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.RemoveLayoutAt

**RemoveLayoutAt**(index As `Integer</api/data_types/integer>`)

> Called by a layout as it closes, when the layout was opened from the row at *index* of the control, to release the control's association between that row and the layout. The row can then open a new layout the next time it is asked to. The control's record for the row is otherwise left in place.

<div id="dbkit.sdk.rowslistcontrol.removerowat">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.RemoveRowAt

**RemoveRowAt**(index As `Integer</api/data_types/integer>`, immediately As `Boolean</api/data_types/boolean>` = `False</api/language/false>`)

> Called by DBKit to remove the row at *index* from the control. When *immediately* is True, the row is removed from the display right away.

<div id="dbkit.sdk.rowslistcontrol.setallowselectionchangedevent">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.SetAllowSelectionChangedEvent

**SetAllowSelectionChangedEvent**(allow As `Boolean</api/data_types/boolean>` = `True</api/language/true>`)

> Called by DBKit to allow or suppress the control's selection changed event, so that selection changes DBKit makes itself are not reported back to it as if the user had made them.

<div id="dbkit.sdk.rowslistcontrol.setselectedrowindex">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.SetSelectedRowIndex

**SetSelectedRowIndex**(index As `Integer</api/data_types/integer>`)

> Called by DBKit to select the row at *index* in the control.

<div id="dbkit.sdk.rowslistcontrol.updaterow">

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

</div>

<div class="rst-class">

forsearch

</div>

DBKit.SDK.RowsListControl.UpdateRow

**UpdateRow**(row As `DBKit.Row</api/databases/dbkit/row>`, index As `Integer</api/data_types/integer>`)

> Called by DBKit to have the control update the row it displays at *index* from *row*.

## 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.rowslistcontrol.seealso">

<div class="seealso">

`DBKit SDK</api/databases/dbkit/sdk>` overview, `DBKit.Table</api/databases/dbkit/table>`, `DBKit.SDK.Layout</api/databases/dbkit/sdk/layout>`.

</div>

</div>
