DataHelper RestrictRows Method (DataSet, Int32, Int32, Int32 )Kentico 8.0 API Reference
Restricts the given DataSet to only given rows starting with the offset, and leaving only maximum defined number of rows.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

ds
Type: OnlineSystem.Data DataSet
DataSet with the data
offset
Type: OnlineSystem Int32
Starting offset
maxRecords
Type: OnlineSystem Int32
Maximum number of the records
totalRecords
Type: OnlineSystem Int32 
Returns the total number of available records

Return Value

Type: OnlineDataSet
Returns the same DataSet object
See Also