What is the difference between RadGrid.Rebind() and RadGrid.MasterTableView.Rebind()?

DeveloperDan picture DeveloperDan · Apr 6, 2012 · Viewed 13.1k times · Source

Using RadGrid for Asp.Net Ajax (from Telerik) I need to re-set the CurrentPageIndex. Some examples say the next line of code should be myGrid.Rebind() while others suggest calling myGrid.MasterTableView.Rebind(). What's the difference? Which should I use?

Answer

Claudio Redi picture Claudio Redi · Apr 6, 2012

myGrid.MasterTableView.Rebind() would rebind the top-level table on the RadGrid.

myGrid.Rebind() would rebind all tables on the RadGrid.

I recommend you to take a look to this article in order to understand the difference between RadGrid and MasterTableView.