WebDataSelection.SelectAll() Method

Selects all data rows within the grid.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v19.2.dll

Declaration

public void SelectAll()
Public Sub SelectAll

Remarks

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

WebForms:

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