Skip to main content

WebDataSelection.SelectAll() Method

Selects all data rows within the grid.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public void SelectAll()

Remarks

To clear the selection, use the WebDataSelection.UnselectAll method.

Web Forms:

protected void SelectAllButton_Click(object sender, EventArgs e) {
    gv.Selection.SelectAll();
}

MVC:

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

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

grid.SelectAllRowsOnPage();
See Also