Back to Devexpress

SelectQuery.Top Property

corelibraries-devexpress-dot-dataaccess-dot-sql-dot-selectquery-d8517ce0.md

latest1.5 KB
Original Source

SelectQuery.Top Property

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

Namespace : DevExpress.DataAccess.Sql

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
[DefaultValue(0)]
[LocalizableCategory(DataAccessStringId.QueryPropertyGridTableSelectionCategoryName)]
public int Top { get; set; }
vb
<DefaultValue(0)>
<LocalizableCategory(DataAccessStringId.QueryPropertyGridTableSelectionCategoryName)>
Public Property Top As Integer

Property Value

TypeDefaultDescription
Int320

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.

See Also

Skip

SelectQuery Class

SelectQuery Members

DevExpress.DataAccess.Sql Namespace