Solved

Refreshing Grid View

Posted on 2006-07-01
2
263 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
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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

18 Experts available now in Live!

Get 1:1 Help Now