Auto_Regenerate_State - dbGrid_
Controls the behavior of the object when add mode is exited, or when the object is initialized as it takes the focus
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer Auto_Regenerate_State
| Access Type | Syntax |
|---|---|
| Read Access: | Get Auto_Regenerate_State to IntegerVariable |
| Write Access: | Set Auto_Regenerate_State to IntegerVariable/Value |
Description
The Auto_regenerate_state property controls the behavior of the object when add mode is exited, or when the object is initialized as it takes the focus. With the default setting (true), if the grid has become unsorted (because new records were added in no particular order), the grid will automatically regenerate the display for the object by sending the regenerate message. If this property is set to false, the grid will not automatically regenerate when the grid is unsorted. 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.
Default is true.