Skip to main content

WebDataSelection.CancelSelection() Method

Unlocks the ASPxGridBase.SelectionChanged event, raising functionality after a call to the WebDataSelection.BeginSelection method, but prevents a single SelectionChanged event to be generated as a result of the performed batch selection modifications.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v22.1.dll


public void CancelSelection()


ASPxGridView allows a sequence of row selection operations to be performed in 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 CancelSelection and WebDataSelection.EndSelection (or WebDataSelection.CancelSelection) methods. This improves performance, and avoids unnecessary event invocations.

See Also