Object Reference > True DBGrid Methods > RefetchRow Method |
RefetchRow Method
The RefetchRow method repopulates the specified row from a data source control and/or unbound events.
TDBGrid.RefetchRow [bookmark]
Arguments
bookmark is an optional variant that specifies the row to refetch. If not specified, the current row is assumed. If specified, it must be a valid bookmark.
Return Value
None
It also repaints the row, firing all events necessary for redisplay.
By default, the grid retrieves data automatically as needed. It fetches rows in blocks of ten, and only gathers data for visible columns. However, in some cases, you can improve performance by fetching only the data for a single (changed) row. The RefetchRow method is provided for this purpose.
Note
The RefetchRow method does not force the data source control to refresh its own data from the underlying database. You must use data control methods or options to accomplish this.