Solved

Refreshing Grid View

Posted on 2006-07-01
2
259 Views
Last Modified: 2010-04-23
Hi, I am very new to web development so please go easy if the following question is absurdly simple ;-)

I am using Visual Studio 2005, with VB.Net to develop a web-site, which is utilising a SQL Database.

On one page, I have a search facility which is activated by a button. This search populates a temporary table, which I have bound to a gridview on the same page.

However I do not know how to refresh the gridview when the underlying table changes.

Any help to get me going again would be very much appreciated.

thanks...
...Steve
0
Comment
Question by:swtiley
2 Comments
 
LVL 1

Author Comment

by:swtiley
Comment Utility
As additional comment - I have played around with the gridview.databind, but I am not sure where to put it.

For the moment it is on pageload, but then the gridview always displays one search behind the current one. Any suggestions of where it should go - or a better way of refreshing ...


... Thanks (again)
Steve
0
 
LVL 5

Accepted Solution

by:
t_itanium earned 500 total points
Comment Utility
you can do that by rebinding the data or use the .Refesh of the grid view...but  if you are using ASP.NET  make sure you understand STATEVIEW and ASP.NET page life cycle...

http://www.15seconds.com/Issue/020102.htm
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now