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.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax 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:
DataSetReturns the same DataSet object
See Also