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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:10:30+00:00 2026-05-28T19:10:30+00:00

So, I have looked everywhere for a solution to this problem I have and

  • 0

So, I have looked everywhere for a solution to this problem I have and everything I have tried so far has failed.

Here’s the thing, I need to somehow access multiple button images that have been placed in the headers of a DataGrid. I need to access these buttons during an UpdatePanel_Render event to change their attributes. However, the DataGrid loads AFTER the UpdatePanel and so I cannot find these controls. I need some help. I’ve tried everything that I know (which isn’t a whole lot). :'(

If you need sample code of some sort or anything, let me know and I will edit this post and provide it.

Important

I’m adding on to my question. I decided to place the headers and buttons in a separate Table and I managed to add JavaScript that re-sizes the Table to fit the DataGrid. This table is outside of the UpdatePanel and the only issue is that when a button is pressed, the Table disappears. Does anyone know why this might be?

  • 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-28T19:10:31+00:00Added an answer on May 28, 2026 at 7:10 pm

    So I ended up figuring out how to get everything to work properly. Here is the snippet of Javascript that I used to get the separate Table to line up with the DataGrid without me having to attempt to access the buttons. 🙂 I haven’t actually tried the button stuff yet so… We’ll see how it works. Hopefully the UpdatePanel isn’t too terribly unkind to my work.

    Code

    <script type="text/javascript">
             //Alters the width of the table upon load
             var defaultRow = $("#<%=ContactHistory.ClientID %> > tbody > tr:first");
             var headerRow = $("#header");
             headerRow.insertBefore(defaultRow);
    
             //Alters the width of the table after the UpdatePanel finishes
             Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);
                function endRequestHandler(sender, args) {
                    var defaultRow = $("#<%=ContactHistory.ClientID %> > tbody > tr:first");
                    var headerRow = $("#header");
                    headerRow.insertBefore(defaultRow);
                };   
            </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have looked everywhere and surprisingly can't find a good solution to this! I've
I've looked everywhere, but can't seem to find a solution to this problem. I'm
I have looked everywhere but have not found a problem similar to this. I
I have looked everywhere, but have not found a solution for this issue. I
I have looked everywhere and cannot find a fix for this problem, ftplib storbinary
I have looked everywhere for the answer to this question, but cannot find anything
I have looked everywhere for the answer to this question and while there are
So I looked everywhere and I have no idea how to solve this certificate
(I looked everywhere for this, perhaps my googling skill is off today) I have
I'm still struggling with my scenario. I have looked everywhere for a solution and

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.