WebDataSelection.BeginSelection() Method

Prevents raising the ASPxGridBase.SelectionChanged event for each programmatic selection modification (until the WebDataSelection.EndSelection or the WebDataSelection.CancelSelection method is called).

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v21.1.dll

Declaration

public void BeginSelection()

Remarks

ASPxGridView allows a sequence of row selection operations to be performed via code without raising the ASPxGridBase.SelectionChanged event for each selection modification. To do this, the code performing sequential changes must be enclosed within calls to the BeginSelection and WebDataSelection.EndSelection (or WebDataSelection.CancelSelection) methods. This improves performance, and avoids unnecessary event invocations.

See Also