ASPxClientGridView.UnselectFilteredRows Method
Deselects the rows that match the applied filter criteria.
Declaration
UnselectFilteredRows(): void
Remarks
When the filter mode is enabled, call the UnselectFilteredRows
method to deselect the rows that match the currently applied filter criteria.
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 ID="grid" ClientInstanceName="grid" runat="server" AutoGenerateColumns="False">
<Settings ShowHeaderFilterButton="true" />
<Columns>
<dx:GridViewCommandColumn VisibleIndex="0" ShowClearFilterButton="True"
ShowSelectCheckbox="true" SelectAllCheckboxMode="AllPages">
</dx:GridViewCommandColumn>
<%--...--%>
</Columns>
</dx:ASPxGridView>
<div style="margin: 10px 0;">
<dx:ASPxButton ID="Button" runat="server" Text="Unselect filtered rows" AutoPostBack="false">
<ClientSideEvents Click="UnselectFilteredRows" />
</dx:ASPxButton>
</div>
function UnselectFilteredRows(s, e) {
grid.UnselectFilteredRows();
}
See Also