pbAutoRegenerate - cDbCJGrid
Determines if adding or editing rows can change the grid ordering, which is used to determine if the grid should be refreshed after an edit
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbAutoRegenerate
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbAutoRegenerate to BooleanVariable |
| Write Access: | Set pbAutoRegenerate to BooleanVariable/Value |
Description
pbAutoRegenerate determines if adding or editing row data can make your grid appear unordered. With the default setting (true), the grid will assume that any change will make the grid unordered. When this happens, the grid will attempt to refresh and reorder this grid as soon as it makes sense, which is usually when saving a row. If this property is set to false, the grid will assume that the grid is always properly ordered and not attempt an automatic refresh.
When appropriate, setting this to false, provides a minor display optimization. Often data entry grids will be designed so that they are always in order. For example, if your grid is ordered by an auto assigned ID, and you only allow edits and appends your grid may always be in order. In such a case, you can set this property to false.
If pbAutoRegenerate is set to false for a grid that can become out of order, this is not an error. In this case, the object may display the same record more than once. However, this does not indicate the database is corrupt; only that the display is incorrect.
If your data is static (pbStaticData is True), this property has no effect and your grid is never automatically regenerated.
Default is true.