Skip to main content

TcxCustomDataController.IsBOF Method

Returns a value indicating whether the first visible row is focused.

Declaration

function IsBOF: Boolean;

Returns

Type
Boolean

Remarks

The IsBOF function returns True if the first visible row is focused. Otherwise, the function returns False.

In grid mode implemented by the TcxDBDataController class, IsBOF returns the result of the TDataSet.BOF property.

In other loading modes (unbound, provider and default bound modes), IsBOF returns True if the FocusedRowIndex property is set to 0 or if there are no rows at all.

If you need to know whether the first data record is focused in bound mode, you should use the dataset’s BOF property.

The IsBOF and IsEOF functions take the order in which rows are displayed on screen into account. A row represents a potentially visible data record or a grouping row, which can be focused, selected and deleted. The order in which rows are displayed on screen is based on the sorting, filtering and grouping applied.

The difference between rows and records is described in the TcxCustomDataController topic.

See Also