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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:07:05+00:00 2026-05-13T13:07:05+00:00

I renew parameters of my DataSource for GridView on Button and loads event Page_Load()

  • 0

I renew parameters of my DataSource for GridView on Button and loads event Page_Load()
and After it (or with it) GridView renews itself.

I need to rename Header rows but there is no event after Page Load.

more information about details here :

[On Button Click] I change DataSource and Bind it (SqlDataSource1.DataBind(); ) Then sure Page gone to Refresh elements.

[On Page_Load] GridView is changing data, but if I can’t change Headers there because it’s looking like loads after this function 🙁

[one more Button] I can add new button with a function – rename headers and it works correct everytime

    protected void Button2_Click(object sender, EventArgs e)
{
    // Stack overflow
    DataRow T;
    if (go)
        if (GridView2.HeaderRow.Cells.Count != 0)
            for (int i = 0; i < SQF.SQF.Permission.Rows.Count; i++)
            {
                T = SQF.SQF.Permission.Rows[i];
                GridView2.HeaderRow.Cells[i].Text = (string)T["Caption1"];
                WebMsgBox.Show((string)T["Caption1"]);
            }
}

Trouble : I no need one more button for it, I need to rename header rows after I click button to change Data but I have no idea where I can do it.

thank you.

  • 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-13T13:07:06+00:00Added an answer on May 13, 2026 at 1:07 pm

    Well you could use Gridview DataBound event, like that:

    <asp:GridView runat="server" ID="SomeID" OnDataBound="GridVIew_OnDataBound" ... />
    

    The DataBound event occurs right after the databinding process for that particular control has completed.

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

Sidebar

Related Questions

I need help: My profile expired and I can't renew it - don't know
I've visited http://msdn.microsoft.com/en-us/library/ff369721.aspx and it is strongly implied that if you need to renew
I ordered a auto-renew product, After 5 minutes ,it become expired! I think in
Would appreciate any piece of advice on this. Need to dynamically renew the captcha
For a app i need to renew the screen once you've clicking the back
In the provisioning portal, the renew button for my team provisioning profile is grayed
my certificate has just expired. I renewed it on Team section, then renew provisioning
I want to renew a subview which is created like this: CGRect keyLabelRect =
Does anyone know the process to renew SSL certificate for custom java web server?
I need to read, from a server, the stream of a specific fan page.

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.