aspnet-js-aspxclientgridview-b3d75e15.md
Selects or deselects the rows on the current page.
SelectAllRowsOnPage(
selected?: boolean
): void
| Name | Type | Description |
|---|---|---|
| selected | boolean |
true or undefined to select all rows; false to deselect all rows.
|
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.
View Example: How to select all rows except disabled rows on the client side
See Also