The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



NrOfRows


Unit:SDL_replist
Class:TReportListView
Declaration:property NrOfRows: longint;
 
The property NrOfRows specifies the number of rows of the list view. Increasing the number of rows preserves all information in the list view, while decreasing its number of rows destroys the information contained in the removed (bottom) rows.

Hint 1: Increasing the number of rows requires considerably more computing time than decreasing it. In order to overcome this problem, the property AllocRowsBy of the property Strings should be increased.

Hint 2: Reducing the number of rows of a sorted report list will corrupt the data unless the method Strings.CommitSorting is called before changing the number of rows.

Hint 3: In the Light Edition the max. number of cells of the data table is restricted to 2000 (i.e. the product of NrOfRows times NrOfColumns must not exceed 2000).

Example: This property is used in the following example programs (see http://www.lohninger.com/examples.html for downloading the code): geodata, multilinreg, repldragdrop, replistv, sortarray



Last Update: 2023-Dec-13