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

Refresh redraw GridView within TabStrip

1 Answer 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Developer Developer
Top achievements
Rank 1
Developer Developer asked on 01 Apr 2010, 02:39 PM
When I do this.radGridView1.DataSource = [new datasource], the GridView never refreshes the data.  Is there something else that needs to be done to refresh the data?

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 07 Apr 2010, 09:16 AM
Hello,

Thank you for the question.

RadGridView supports data refresh out of the box when your underling data source list implements IBindingList and your data object - INotifyPropertyChanged. However, you will need to set radGridView1.DataSource = null before setting the new DataSource.

Also you can try to use Update method as well:
 
this.radGridView1.GridElement.Update(GridUINotifyAction.Reset);

Let me know if you have any additional questions.
 

Regards,
Martin Vasilev
the Telerik team

P.S. Please, update your name and surname in your account.

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Developer Developer
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or