DataWindow Pagination

If the HTMLGen.PageSize property of a DataWindow object is not set, the Web.config file property PBDataWindowRowsPerPage limits the number of rows per page for a Web DataWindow control to 20 rows by default.

Note: You set the HTMLGen.PageSize property in the DataWindow painter by selecting the Rows Per Page option on the Web Generation tab.

Because this renders only the specified number of rows at a time, the PBDataWindowRowsPerPage helps reduce the size of the HTML response and thereby enhances performance. This property is global, since it applies to all DataWindows in the application for which HTMLGen.PageSize is not set.

Note: The PBDataWindowRowsPerPage setting has no effect on the number of rows in a DataWindow object with the Label presentation style. Composite and Crosstab presentation styles do not support pagination.

To disable pagination of Web Forms DataWindow objects, set the PBDataWindowRowsPerPage property to -1. To disable pagination for a specific DataWindow object, set its HTMLGen.PageSize property to -1.