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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:22:58+00:00 2026-05-15T23:22:58+00:00

I am dynamically creating dragrids in different rows of an existing datagrid in asp.NET

  • 0

I am dynamically creating dragrids in different rows of an existing datagrid in asp.NET

My generated datagrids have a column which is TemplateColumn (a CheckBox Column).

In my parent datagrid, I have a template column with checkboxes. when I check or uncheck the value of the check box, the check_change method is called (autopostback is set to true), the dynamically generated datagrids lose the checked checkboxes (the checkboxes are all unchecked again). However, if i check any of the checkboxes of the child (dynamically generated) grids and press F5, it refreshes the page but still I have my checked checkboxes.

What’s happening ?? how is post-back different from refresh F5??? understanding this might help me fix my problem here :DataGrid not being altered!

  • 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-15T23:22:59+00:00Added an answer on May 15, 2026 at 11:22 pm

    It’s simple, the browser caches the response. So if you press F5, you’d generally see your grid with the checked checkboxes each time. But if you do a post-back in code, you force the browser to connect to the server and post the data.

    It will then wait for a response from the server, and return whatever the reason for the post-back was.

    Annoying, but that’s how browsers work. You can force a complete refresh than emulates a post-back by hitting Ctrl+F5.

    This is (sometimes) browser dependent because not all browsers will act the same as you described here.

    If a post-back is necessary but you still want to keep the checkbox status as checked, I’d recommend an AJAX call instead.

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

Sidebar

Related Questions

I am dynamically creating a table which I want to have clickable rows. When
I have 4 UITextFields that I'm dynamically creating, in the viewDidLoad, which works good.
I am dynamically creating an asp.net RadioButton and inserting it into my web page:
I am having dynamically creating remove label. All have same class but different Ids.
I am dynamically creating a hyperlink in the c# code behind file of ASP.NET.
I am dynamically creating some classes and I want them to have different docstrings.
I am dynamically creating a table in C# with ASP.NET, and each row will
I have a WPF ListView control for which I am dynamically creating columns. One
I am dynamically creating a RadGrid and adding GridTemplateColumns to it. Those columns have
I am dynamically creating classes which contain spring beans, however the beans are not

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.