Object Reference > True DBGrid Methods > HoldFields Method |
HoldFields Method
The HoldFields method sets the current column/field layout as the customized layout so that subsequent ReBind operations will use the current layout for display.
object.HoldFields
Arguments
None
Return Value
None
You can resume the grid's automatic layout behavior by invoking the ClearFields method.
The HoldFields method is especially useful in the unbound modes when you have specified the column layout in code and would like to keep it intact after a ReBind operation.