.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to refresh Datagridview at runtime usnig C#

Posted By: kamlesh     Posted Date: November 04, 2011    Points:5   Category :C#
hi, i want to refresh data grid view run time, if data is update in that database at run time with out click on any button.(if status change at run time). suppose status one column.

Author: kanhaiya kumar             
Posted Date: November 08, 2011     Points: 20   

you have to do post back for refresh a Gridview.
if u want to automatically refesh use Time control. It will Bind your grid after certain time.
if u bind gridview from control like sqldatasouce and linqddatasouce then u have to just write


if u Bind gridview throught code than you have to give

Gridviewname.Datasouce = datasouce //like var or datatable

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend