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 139571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:27:32+00:00 2026-05-11T07:27:32+00:00

I Have a UserControl called TenantList.ascx which contains a slightly modified GridView from DevExpress

  • 0

I Have a UserControl called TenantList.ascx which contains a slightly modified GridView from DevExpress (Web.ASPxGridView). This control makes Callbacks without causing a postback which is exactly what I need. The specific event I need to react on is CustomButtonClicked. I have made my on OnCustomButtonClicked event on the usercontrol TenantList.ascx that fires when the the GridView CustomButtonClicked event fires.

I have an eventhandler on the page where I use the UC. When I debug using VS I can see that I get into the eventhandler as I am suppose to. My Eventhandler looks like this:

    protected void uc_TenantList_CustomButtonCallback(object sender, ASPxGridViewCustomButtonCallbackEventArgs e)     {         Tenant tenant = (Tenant)uc_TenantList.GetGridView().GetRow(e.VisibleIndex);          switch (e.ButtonID)         {             case 'btn_show':                 ShowRow(tenant);                 break;             case 'btn_edit':                 EditRow(tenant);                 break;             case 'btn_delete':                 DeleteRow(tenant.Id);                 break;             default:                 break;         }      }      private void EditRow(Tenant tenant)     {         uc_TenantDetails.SetTenantData(cBLL.GetTenant(tenant.Id));         UpdatePanel1.Update();     } 

The EditRow function get’s called and the UserControl TenantDetails.ascx gets filled with data correctly. However the UpdatePanel1.Update(); is not updating the panel where my TenantDetails UserControl is in.

However if i call UpdatePanel1.Update(); from a normal control registered to the ScriptManager it updates just fine.

        protected void Button1_Click(object sender, EventArgs e)         {             uc_TenantDetails.SetTenantData(cBLL.GetTenant(17));             UpdatePanel1.Update();         } 

That works without a problem… I am 100% stuck and without any idea of what might be the problem here.

Any suggestion is welcome!!

Cheers The Real Napster – In real trouble 🙂

  • 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. 2026-05-11T07:27:33+00:00Added an answer on May 11, 2026 at 7:27 am

    Okay solved this issue

    What I needed to do was to enable postback on the gridview control inside my usercontrol. Then place the Gridview usercontrol in a updatepanel and still keep the details usercontrol in another updatepanel.

    That way it all worked out. Not impressed by the solution though. Looks a bit ugly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 58k
  • Answers 58k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer I solved this with another way using a button rather… May 11, 2026 at 8:48 am
  • added an answer For a general guide have a look at these two… May 11, 2026 at 8:48 am
  • added an answer You can use one of the segment registers (or the… May 11, 2026 at 8:48 am

Related Questions

No related questions found

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

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.