ASPxClientGridView.SelectAllRowsOnPage Method
Selects or deselects the rows on the current page.
Declaration
SelectAllRowsOnPage(
selected?: boolean
): void
Parameters
Name | Type | Description |
---|---|---|
selected | boolean |
|
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
See Also