Solved

Refreshing datagrid that uses a web services.

Posted on 2008-06-13
2
196 Views
Last Modified: 2013-12-17
This webservice does a select and puts it in a dataset called ds.
Now if I do an insert on the datagridview. I need to rebind the data.

What are the necessary functions I have to do to refresh the grid.
If the name of the grid view is dataGridView.
 InitialPrices.localhost.InitialPriceReportingService WS = new InitialPrices.localhost.InitialPriceReportingService();

 ds = WS.GetPriceListHeader();
 this.dataGridView1.DataSource = ds.Tables[0];
0
Comment
Question by:mathieu_cupryk
2 Comments
 
LVL 6

Accepted Solution

by:
MuhammadAdil earned 500 total points
ID: 21784291
You want to refresh datagrid after specific time interval?
If yes. You can use ajax.
Put you datagrid control in update panel.
Use timer object.
And rebind on timer tick

Regards

Adil Fazal
0
 

Author Comment

by:mathieu_cupryk
ID: 21784313
i just want to do a refresh on an insert of a row or update of a row.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 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