Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomDataController.IsBOF Method

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

#Declaration

Delphi
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