Skip to main content

ASPxClientGridView.SelectAllRowsOnPage Method

Selects or deselects the rows on the current page.

Declaration

SelectAllRowsOnPage(
    selected?: boolean
): void

Parameters

Name Type Description
selected boolean

true or undefined to select all rows; false to deselect all rows.

Remarks

Call the SelectAllRowsOnPage method to select or deselect all rows within the current page.

When the row selection changes, the control raises the client-side ASPxClientGridView.SelectionChanged or the server-side ASPxGridBase.SelectionChanged event (based on the ProcessSelectionChangedOnServer property value).

<dx:ASPxGridView ClientInstanceName="grid" runat="server">
    <%--...--%>
</dx:ASPxGridView>
// Selects all rows
grid.SelectAllRowsOnPage();

// Selects all rows
grid.SelectAllRowsOnPage(true);

// Deselects all rows
grid.SelectAllRowsOnPage(false);

To select a single row within the current page, call the SelectRowOnPage(visibleIndex) method.

Online Example

View Example: How to select all rows except disabled rows on the client side

See Also