Skip to main content

DataGridView.BeginUpdate() Method

Locks the grid to prevent its visual updates until the EndUpdate method is called.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

public void BeginUpdate()

Remarks

Enclose your code in the BeginUpdate - EndUpdate method calls to suppress the DataGridView‘s visual updates and maintain its performance when you apply multiple changes to it (for example, sort, group or update data).

Each call to BeginUpdate must be paired with a call to EndUpdate. The BeginUpdate method locks the grid so that it is not rendered after each modification. The EndUpdate method unlocks the control to enable all the changes to take effect.

Another way to do the same is to use the IsUpdateLocked property.

See Also