DataGridView.IsUpdateLocked Property
Gets or sets whether the grid is locked for updating.
Namespace: DevExpress.XamarinForms.DataGrid
Assembly: DevExpress.XamarinForms.Grid.dll
NuGet Package: DevExpress.XamarinForms.Grid
Declaration
[XtraSerializableProperty]
public bool IsUpdateLocked { get; set; }
Property Value
Type | Description |
---|---|
Boolean | true, if the grid is locked; otherwise, false. |
Remarks
You can use the IsUpdateLocked property to suppress the grid’s visual updates and maintain its performance when you perform multiple changes to it (for example, sort, group or update data).
- Set the IsUpdateLocked property to true to lock the grid, so that it is not rendered after each modification.
- After you finish all desired operations, set the IsUpdateLocked property to false to apply all the changes and repaint the grid.
Another way to do the same is to use the DataGridView.BeginUpdate - DataGridView.EndUpdate methods. In this case, the IsUpdateLocked allows you to determine the grid’s state. If the BeginUpdate locks it, the IsUpdateLocked property returns true.
See Also