Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2006, 11:55 PM
Authorized User
 
Join Date: Aug 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Byock
Default How to refresh the datagrid?

I have a datagrid that displays some itemd from a database table.

The datgrid grid columns are name, time, status, download button.

The download button when it's clicked i can download the item shown in that specific datagrid row...and then the status will change to downloaded....all this data comes from a table named tblDownload...so during download, the status is changed in the table...but after the download the datagrid still displays the status as awaiting download....


Any idea on how i can refresh the datagrid after every download?

thanks

 
Old December 4th, 2006, 11:43 AM
Authorized User
 
Join Date: Sep 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

U can call databind method on each postback,if u have now calling it on firstload of page.
Second , u can disable view state on datagrid. But u will miss some functionalites,Like sorting and paging


 
Old December 11th, 2006, 05:51 AM
Authorized User
 
Join Date: Aug 2005
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Byock
Default

Databinding method after every postback didnt work for me...as the page didn't postback even after a successful download...

Disabling view state is not an option as i need my datagrid to be able to do paging and sorting...


Any other option or work around i can use?

Thanks again






Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid won't refresh cole C# 2005 0 April 27th, 2007 10:44 AM
windows forms datagrid - refresh ab_dev General .NET 0 March 1st, 2006 06:37 PM
Refresh DataGrid without PostBack Baby_programmer Classic ASP XML 1 April 2nd, 2005 04:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.