Radgrid not updating after databind
We also want it to be something persistent, so that, for example, if you sort, then page, the sort is maintained.
The way we’ll accomplish this is to create two properties that store those values in View State.
However, when i manually refresh my page, then it does.
We’ll start with binding data to the Grid View, then build up functionality from there.
First, we’ll implement a method to databind the Grid View, which will be called whenever databinding needs to be performed.
The Grid View does know the events that should be used to implement them, so the exceptions shown above are thrown when you try to perform one of these operations, but you have implemented the appropriate event handler.
The example shown here is for a Grid View, but the same types of event handlers must be implemented in roughly the same way for other data controls including the Form View, Details View, and List View. This is the final Grid View markup, so you can see the event handlers we’re going to implement.