We help IT Professionals succeed at work.

how to refresh a gridview - asp.net

newbie27 asked
Last Modified: 2012-05-08

from the code behind i am updating the status of the registration
case "new"
RegistrationPersonalisedClassics.UPdatePCRegistrationDetails(GiftCodeID, "ARRIVED", "", UserID, UserTypeID)
soon the status gets updated i wanted to show that record in the grid below to get all the records with the status="ARRIVED"

however the grid not showing the result instantly, until i refresh the page.

please can someone advise how can i get the grid to refresh the results and show the latest record as well, without actually refreshing a page

<asp:Panel ID="pnlShowRegistrations" runat="server" Visible="True">

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="GiftCodeID" DataSourceID="dsRegistrations" AllowPaging="True" CellPadding="3" CellSpacing="3" PageSize="15">
            <asp:TemplateField HeaderText="GiftCode ID" InsertVisible="False" SortExpression="GiftCodeID">
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("GiftCodeID") %>'></asp:Label>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "SearchRegistrationResults.aspx?OrderID=" & Eval("GiftCodeID") %>'
                        Text='<%# Eval("GiftcodeID") %>'></asp:HyperLink>

any helps is greatly appreciated.
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
This one is on us!
(Get your first solution completely free - no credit card required)
This one is on us!
(Get your first solution completely free - no credit card required)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.