Skip to main content

TcxCustomDataController.IsEOF Method

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

Declaration

function IsEOF: Boolean;

Returns

Type
Boolean

Remarks

The IsEOF function returns True if the last visible row is focused. Otherwise, the function returns False.

In grid mode implemented by the TcxDBDataController class, IsEOF returns the result of the TDataSet.EOF property.

In other loading modes (unbound, provider, and default bound modes), IsEOF returns True if the FocusedRowIndex property is equal to RowCount - 1 or if there are no rows at all.

If you need to know whether the last data record is focused in bound mode, you should use the dataset’s EOF 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