Click or drag to resize
DataHelperRestrictRows Method (DataSet, Int32, Int32, Int32)
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: 12.0.0
Syntax
C#
public static DataSet RestrictRows(
	DataSet ds,
	int offset,
	int maxRecords,
	ref int totalRecords
)

Parameters

ds
Type: System.DataDataSet
DataSet with the data
offset
Type: SystemInt32
Starting offset
maxRecords
Type: SystemInt32
Maximum number of the records
totalRecords
Type: SystemInt32
Returns the total number of available records

Return Value

Type: DataSet
Returns the same DataSet object
See Also