This is a migrated thread and some comments may be shown as answers.

Question: About Refreshing grid contents by executing stored proc again

3 Answers 20 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jorge Gonzalez
Top achievements
Rank 1
Jorge Gonzalez asked on 29 Jan 2010, 06:41 PM
Hello,
    I execute a proc and load its contents into a dataset, which I than associate with the grid. That works fine.
If I than repeat this process in order to update the grid's contents the changes do not show up on the grid unless I close the app and open it up again.
To get around this problem I execute this command (gridname.itemssource = null) to break the association between the grid and the dataset. I than run the proc again , load the dataset , and than associate the grid with the dataset again. This works.

Is this what I am suppose to do?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 01 Feb 2010, 07:08 AM
Hi Jorge,

How the grid is bound to this DataSet?

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jorge Gonzalez
Top achievements
Rank 1
answered on 02 Feb 2010, 05:09 AM
gridname.itemssource = dataset
0
Vlad
Telerik team
answered on 02 Feb 2010, 07:09 AM
Hi,

The grid will rebind itself if your collection is INotifyCollectionChanged - DataSet does not implement this interface.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Jorge Gonzalez
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jorge Gonzalez
Top achievements
Rank 1
Share this question
or