Link to home
Start Free TrialLog in
Avatar of mathieu_cupryk
mathieu_cuprykFlag for Canada

asked on

Refreshing datagrid that uses a web services.

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];
ASKER CERTIFIED SOLUTION
Avatar of MuhammadAdil
MuhammadAdil
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mathieu_cupryk

ASKER

i just want to do a refresh on an insert of a row or update of a row.