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

Gridview Refresh

1 Answer 246 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deepak Rao
Top achievements
Rank 1
Deepak Rao asked on 22 Jan 2010, 11:41 AM
Hi,
  I have a databound gridview. There is a reset button on the form which should revert the gridview changes. I have checked that the datasource reverts back, but the gridview appears as is...

Can you please give me a solution for this

Thanks
Deepak

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 26 Jan 2010, 11:03 AM
Hello Deepak Rao,

RadGridView refresh mechanism depends on the DataSource object implementation of IBindingList interface. When this interface is implemented from data object, it notifies RadGridView for changes with the ListChanged event. If you use DataTable or BindingList<> generic object this changes will be handled automatically. For all other case you must refresh RadGriView manually:

radGridView1.MasterGridViewTemplate.Update(GridUINotifyAction.Reset);


Regards,
Julian Benkov
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
Deepak Rao
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or