Back to Devexpress

VGridControlBase.Refresh() Method

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrolbase-7a37a86d.md

latest2.4 KB
Original Source

VGridControlBase.Refresh() Method

Forces the vertical grid to invalidate its client area and immediately redraw itself.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
public override void Refresh()
vb
Public Overrides Sub Refresh

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Refresh() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-property-grid-custom-sorting/CS/Form1.cs#L30

csharp
propertyGridControl1.OptionsBehavior.PropertySort = allowCustomSorting ? DevExpress.XtraVerticalGrid.PropertySort.NoSort : DevExpress.XtraVerticalGrid.PropertySort.Alphabetical;
    propertyGridControl1.Refresh();
}

winforms-property-grid-custom-sorting/VB/Form1.vb#L28

vb
propertyGridControl1.OptionsBehavior.PropertySort = If(allowCustomSorting, DevExpress.XtraVerticalGrid.PropertySort.NoSort, DevExpress.XtraVerticalGrid.PropertySort.Alphabetical)
    propertyGridControl1.Refresh()
End Sub

See Also

VGridControlBase Class

VGridControlBase Members

DevExpress.XtraVerticalGrid Namespace