Database Programming Techniques > Refetching Data from the Data Source |
Normally, you need not be concerned with the mechanics of data retrieval. True DBGrid retrieves data automatically as needed, in blocks of ten rows, 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, column, or cell using one of the following methods:
Given a bookmark, this TDBGrid control method repopulates the specified row from the data source. |
|
Given a column index, this TDBGrid control method repopulates the specified column from the data source. |
|
Given a bookmark, this Column object method repopulates the specified cell from the data source. |
These methods repaint the affected cells, firing all events necessary for redisplay. However, they do 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.