ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.RefreshRow Method (Int32)

Invalidates the current row.

[Visual Basic]

Overloads Public Sub RefreshRow( _

ByVal row As Integer _

)

[C#]

public void RefreshRow(

int row

);

[Delphi]

public procedure RefreshRow(

row: Int32

); overload;

Parameters

row

The row to refresh.

Remarks

The RefreshRow method causes a repaint of the entire row in the grid. Normally, the grid repaints automatically as needed. However, if handlers have been written for the OwnerDrawCell event, use this method to force a row to be repainted and hence cause the appropriate events to fire.

Example

The following code refreshes the first row:

·      Visual Basic

       Me.C1TrueDBGrid1.RefreshRow(0)

·      C#

       this.c1TrueDBGrid1.RefreshRow(0);

·      Delphi

       Self.C1TrueDBGrid1.RefreshRow(0);

See Also

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


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