Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of mathieu_cupryk

ASKER

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