Skip to main content
A newer version of this page is available. .

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.

See Also