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

  • SEARCH
  • Home
  • 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 7019327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:10:06+00:00 2026-05-27T23:10:06+00:00

I have an ASPxGridView and 2 radio buttons on my project. When I change

  • 0

I have an ASPxGridView and 2 radio buttons on my project. When I change selection of the radio button group, it changes the select command of the data source. After that, when I clicked on 2nd page, the data source’s select command changes into previous situation.

Here is the example..
http://www.2shared.com/file/HwnBYcFS/WebApplication8.html

Note: When the page loads data source filters ‘Neo’s, click on the “All” radio button, and change the page.

Thanks for answers..

  • 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-27T23:10:06+00:00Added an answer on May 27, 2026 at 11:10 pm

    1.add init event handler to grid
    2.implement init event handler

    protected void Grid_Init(object sender, EventArgs e)
    {
        if (!IsCallback)
            Page.Session["selectCommand"] = null;
    
        if (Page.Session["selectCommand"] != null)
            AccessDataSource1.SelectCommand = (string)Page.Session["selectCommand"];
        grid.DataBind();
    }
    

    3.Change custom callback handler

    protected void grid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
    {
        if (e.Parameters == "Neo")
        {
            AccessDataSource1.SelectCommand = "select Name,Surname from Person where Name='Neo'";
        }
        else if (e.Parameters == "All")
        {
            AccessDataSource1.SelectCommand = "select Name, Surname from Person";
        }
        Page.Session["selectCommand"] = AccessDataSource1.SelectCommand;
        grid.DataBind();
    }
    

    4.use CheckedChange client side event instead of gotfocus

    <ClientSideEvents CheckedChanged="
        function(s, e)         
        {
            if(s.GetValue())
                grid.PerformCallback(&quot;Neo&quot;);
        }" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASPxGridView shown to the user with an edit command button. When
I have a web project with devexpress component ASPxGridView. So I want to know
I have an AspxGridView in my project with AllowFocusedRow=True . Every time I load
I have an ASP .net C# project using a EntityDataSource with a DevExpress aspxGridView
I have ASPxGridView from Devexpress and I want to show message after clicking the
I have an AspxGridView and it has a Button inside of a column's DataItemTemplate.
I have an AspxGridView and a button inside of a DataItem Template of one
I have an ASPxGridView on my page which has a few columns of data.
I have a aspxgridview that shows a number of buttons for each row. What
I have a AspxGridView which is linked to a DataSource. Below the GridView there

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.