ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DataColumn.Refetch Method

Repopulate the entire grid from the data source.

[Visual Basic]

Public Sub Refetch()

[C#]

public void Refetch()

[Delphi]

public procedure Refetch();

Remarks

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, performance can be improved by fetching only the data for a single (changed) column. The Refetch method is provided for this purpose.

Note: The Refetch method does not force the data source control to refresh its own data from the underlying database. Use data control methods or options to accomplish this.

Example

The following code uses the Refetch method to repopulate the entire first column:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns(0).Refetch()

·      C#

       this.c1TrueDBGrid1.Columns[0].Refetch();

·      Delphi

       Self.C1TrueDBGrid1.Columns[0].Refetch;

See Also

C1DataColumn Class | C1DataColumn Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.