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

[Solved] GridRefresh Issue

0 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bhaskar Khaund
Top achievements
Rank 1
Bhaskar Khaund asked on 28 Jan 2011, 06:15 AM

Hi,

I am using a hierarchal grid, where you have multiple child grids inside each row of the main grid. Now, when someone double-clicks a row in one of the child grid, I am opening up a create/edit dialog, using which the user can add and change the data. On closing of that dialog box, I am doing a refresh of the child grids. For that I am storing the instance of the child grids in a List<RadGridView> and doing an ItemSource on it. But I have seen even though the updated data is bounded into the grid, it "sometimes" doesn’t show the new data. I tried multiple things and found out that if I do a Rebing() on the main grid, then it always shows the data. 

But, all my child grids are inside RadExapander. Once I do the Rebind() of the main grid, all the expanders automatically get collapsed. This is something I don't want to happen. To mitigate this, I created another list and I started storing the instances of the RadExpanders when they are Expanded. So after the Rebing() of my outer main grid, I do a loop on the List<RadExpander> and do isExpanded=true, programmatically. But the expanders still don’t expand after doing this.

What can I do to keep the expanders open once I do a Rebind() on the main grid.

Regards,
Bhaskar

Tags
GridView
Asked by
Bhaskar Khaund
Top achievements
Rank 1
Share this question
or