Skip to main content

WebDataSelection.UnselectAll() Method

Clears selection in the ASPxGridView.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v24.2.dll

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();

The following code snippets (auto-collected from DevExpress Examples) contain references to the UnselectAll() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also