Skip to main content

WebDataSelection.UnselectAll() Method

Clears selection in the ASPxGridView.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web

Declaration

public void UnselectAll()

Remarks

To select all data rows within the grid, use the WebDataSelection.SelectAll method.

Web Forms:

protected void UnselectButton_Click(object sender, EventArgs e) {
    gv.Selection.UnselectAll();
}

MVC:

settings.Click = (s, e) =>  
{  
    GridView1.Selection.UnSelectAll();  
}; 

On the client side, you can use the UnselectRows method.

grid.UnselectRows();
See Also