?
Solved

Refreshing datagrid that uses a web services.

Posted on 2008-06-13
2
Medium Priority
?
243 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
[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 6

Accepted Solution

by:
MuhammadAdil earned 1500 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

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

770 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