Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6536101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:27:05+00:00 2026-05-25T10:27:05+00:00

I have an ASPxGridView with a command column: <Columns> <dx:GridViewCommandColumn Caption=# ShowSelectCheckbox=True VisibleIndex=1 Width=30

  • 0

I have an ASPxGridView with a command column:

<Columns>
    <dx:GridViewCommandColumn Caption="#" ShowSelectCheckbox="True" VisibleIndex="1" Width="30" >      
        <HeaderTemplate>
            <!-- The javascript function is set in the code behind (has to get dynamic grid name) -->
            <dx:ASPxCheckBox ID="SelectAllCheckBox" runat="server" ToolTip="Select/Unselect all rows on the page" %>'  />
        </HeaderTemplate>
    </dx:GridViewCommandColumn>

The ObjectDataSource backing this grid has a set of Objects with a ‘Selected’ property, some set to true. How can I data bind the ‘selected rows’?

Thank you

Ryan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:27:05+00:00Added an answer on May 25, 2026 at 10:27 am

    Found this from DevX site (eventually…)

    There is no need to use the HtmlRowCreated event for this purpose. It is better to implement this feature in the DataBount event handler of the ASPxGridView:

    protected void ASPxGridView1_DataBound(object sender, EventArgs e) {
        ASPxGridView grid = sender as ASPxGridView;
        for(int i = 0;i < grid.VisibleRowCount;i++)
            if(Convert.ToInt32(grid.GetRowValues(i, new string[] { "CategoryID" })) % 2 == 0)
                grid.Selection.SelectRow(i);
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have AspxGridView on my page. I want users to be able to set
In a DexEpress ASPxGridView I have a column that contains voltage. The original values
I have an AspxGridView in my project with AllowFocusedRow=True . Every time I load
we have a DevExpress ASPxGridView in our webapp with EnableCallbacks=true to allow client side
I have an ASPxGridView shown to the user with an edit command button. When
I have a ASPxGridView with a combobox column. Now i want to bind a
I have a ASPxGridview (Normally 21 column but i just want process 4 column).
I have an AspxGridView and it has a Button inside of a column's DataItemTemplate.
I have a aspxgridview control from DevXpress. Is there a way to dynamically specify
I have an ASPXGRIDVIEW which is binded to an SQL query. I added to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.