Object Reference > True DBGrid Methods > RefreshCol Method |
RefreshCol Method
The RefreshCol method repaints the visible cells in the specified column.
TDBGrid.RefreshCol [index]
Arguments
index is an optional variant that specifies the column to refresh. If not specified, the current column is assumed. If specified, it must be a valid column number or name.
Return Value
None
Normally, the grid repaints automatically as needed. However, if you have written handlers for the Paint or OwnerDrawCell events, you can use this method to force a column to be repainted and hence cause the appropriate events to fire.
Note
The RefreshCol method does not refetch data from a data source control or unbound events.