ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.Refresh Method

Clears any cached styles and forces the grid to repaint.

[Visual Basic]

Overrides Public Sub Refresh()

[C#]

override public void Refresh()

[Delphi]

public procedure Refresh(); override;

Example

The following code uses the Refresh method to reset the styles back to its default setting:

·      Visual Basic

       Me.C1TrueDBGrid1.FetchRowStyles = False

       Me.C1TrueDBGrid1.Refresh()

·      C#

       this.c1TrueDBGrid1.FetchRowStyles = false;

       this.c1TrueDBGrid1.Refresh();

·      Delphi

       Self.C1TrueDBGrid1.FetchRowStyles := False;

       Self.C1TrueDBGrid1.Refresh;

See Also

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


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