ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.RefetchRow Method (Int32)

Retreives data from the datasource for the specified row and refreshes the row.

[Visual Basic]

Overloads Public Sub RefetchRow( _

ByVal row As Integer _

)

[C#]

public void RefetchRow(

int row

);

[Delphi]

public procedure RefetchRow(

row: Int32

); overload;

Parameters

row

The row to refetch.

Remarks

The RefetchRow method repopulates the specified row from a data source. It also repaints the row, firing all events necessary for redisplay.

By default, the grid retrieves data automatically as needed. In some circumstances, the underlying datasource may change without the grid receiving notification that a change has occurred. The RefetchRow method is provided for this purpose.

Example

The following code repopulates the second row:

·      Visual Basic

       Me.C1TrueDBGrid1.RefetchRow(1)

·      C#

       this.c1TrueDBGrid1.RefetchRow(1);

·      Delphi

       Self.C1TrueDBGrid1.RefetchRow(1);

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBGrid.RefetchRow Overload List


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