Solved

Refreshing datagrid that uses a web services.

Posted on 2008-06-13
2
226 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Iteration Help (Asp.net VB) 5 25
Error message when using PrintSocket.Send 7 19
Changes to XXX.exe.config file are not retrieved on restart. 3 40
abstract class C# 1 31
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!
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

820 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