The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientGridView.SelectRows Method

Selects or deselects the specified rows within the grid.

Declaration

SelectRows(visibleIndices?: number[] | number, selected?: boolean): void

Optional Parameters

Name Type Default Description
visibleIndices number[] | number null

An array of zero-based indices that identify data rows within the grid.

selected boolean null

true to select the specified rows; false to deselect the rows.

Remarks

Concept

Examples

  • ASPxClientGridView.SelectRows()
<dx:ASPxHyperLink ID="lnkSelectAllRows" ClientInstanceName="lnkSelectAllRows" Text="Select all rows" runat="server" 
  Cursor="pointer" ClientSideEvents-Click="OnSelectAllRowsLinkClick" />

<dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" ...>
    <ClientSideEvents Init="OnGridViewInit" SelectionChanged="OnGridViewSelectionChanged" EndCallback="OnGridViewEndCallback" />
    <Columns>
    ...
    </Columns>
    <SettingsPager PageSize="5" />
</dx:ASPxGridView>

  • ASPxClientGridView.SelectRows(Int32)
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ClientInstanceName="grid" ...>
    <Columns>
    ...
    </Columns>
    <SettingsPager PageSize="5" />
</dx:ASPxGridView>
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Select Row">
    <ClientSideEvents Click="onClick" />
</dx:ASPxButton>

  • ASPxClientGridView.SelectRows(Int32[])
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ClientInstanceName="grid" ...>
    <Columns>
    ...
    </Columns>
    <SettingsPager PageSize="5" />
</dx:ASPxGridView>
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Select Rows">
    <ClientSideEvents Click="onClick" />
</dx:ASPxButton>

  • ASPxClientGridView.SelectRows(Int32, Boolean)
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ClientInstanceName="grid" ...>
    <Columns>
    ...
    </Columns>
    <SettingsPager PageSize="5" />
</dx:ASPxGridView>
<dx:ASPxCheckBox Text="Select Rows" ClientInstanceName="checkBox" ID="ASPxCheckBox1" runat="server"></dx:ASPxCheckBox>
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Process">
    <ClientSideEvents Click="onClick" />
</dx:ASPxButton>

  • ASPxClientGridView.SelectRows(Int32[], Boolean)
<dx:ASPxGridView ID="ASPxGridView1" runat="server" ClientInstanceName="grid" ...>
    <Columns>
    ...
    </Columns>
    <SettingsPager PageSize="5" />
</dx:ASPxGridView>
<dx:ASPxCheckBox Text="Select Rows" ClientInstanceName="checkBox" ID="ASPxCheckBox1" runat="server"></dx:ASPxCheckBox>
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Process">
    <ClientSideEvents Click="onClick" />
</dx:ASPxButton>

See Also