Skip to main content
A newer version of this page is available. .

SelectQuery.Top Property

Specifies the number of rows returned in the query result set.

Namespace: DevExpress.DataAccess.Sql

Assembly: DevExpress.DataAccess.v18.1.dll

Declaration

[TypeConverter(typeof(PositiveIntegerTypeConverter))]
[DefaultValue(0)]
[LocalizableCategory(DataAccessStringId.QueryPropertyGridTableSelectionCategoryName)]
public int Top { get; set; }

Property Value

Type Default Description
Int32

0

A non-negative integer value, specifying the number of selected records (starting with the first data record).

Remarks

Use the TableQuery.Sorting property to predictably indicate which rows are affected by the Top property.

The default zero value indicates that all rows are selected.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Top property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also