Back to Devexpress

ASPxClientGridView.UnselectRowOnPage(visibleIndex) Method

aspnet-js-aspxclientgridview-dot-unselectrowonpage-x28-visibleindex-x29.md

latest1.4 KB
Original Source

ASPxClientGridView.UnselectRowOnPage(visibleIndex) Method

Deselects the row specified by its visible index.

Declaration

ts
UnselectRowOnPage(
    visibleIndex: number
): void

Parameters

NameTypeDescription
visibleIndexnumber

The row’s visible index.

|

Remarks

The UnselectRowOnPage(visibleIndex) method deselects the row with the specified visible index 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).

aspx
<dx:ASPxGridView ClientInstanceName="grid" runat="server">
    <%--...--%>
</dx:ASPxGridView>
js
// Deselects the 1st row
grid.UnselectRowOnPage(0);

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

See Also

ASPxClientGridView Class

ASPxClientGridView Members