Interface

DBKit.SDK.RowBase

DBKit.SDK.RowBase


Description

Included in every DBKit SDK control interface. RowBase adds the two things DBKit needs to know about any control, whichever kind it is: the layout it belongs to and the database table it works with.

A control never implements RowBase directly. It implements one of the interfaces that include it, such as DBKit.SDK.RowDataControl or DBKit.SDK.RowsListControl, and provides these methods as part of that implementation. RowBase itself includes DBKit.SDK.RowEventReceiver, so every control also receives row events.

Methods

Name

Parameters

Returns

Layout

DBKit.SDK.Layout

TableName

String

Method descriptions


DBKit.SDK.RowBase.Layout

Layout() As DBKit.SDK.Layout

Returns the layout the control is on. Through the layout, the control can reach the layout's current row, its database and its other controls.


DBKit.SDK.RowBase.TableName

TableName() As String

Returns the name of the database table the control works with. For a data control, this is the table its column belongs to. For a rows list control, it is the table whose rows the control displays.

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