?
Solved

Refreshing Grid View

Posted on 2006-07-01
2
Medium Priority
?
270 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Author Comment

by:swtiley
ID: 17025848
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 2000 total points
ID: 17029051
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

771 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