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

Grid not grouped after calling LoadLayout()

2 Answers 21 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jill-Connie Lorentsen
Top achievements
Rank 1
Jill-Connie Lorentsen asked on 19 Nov 2009, 01:26 PM

In my grid view I use SaveLayout() /LoadLayout() to save the grid's configuration.

I group my grid by one column, and call SaveLayout(). Later, when I call the LoadLayout() method, the grouped column appears above the other ones, as expected, but the rows in the grid are not grouped. 

I'm enclosing two screen dumps to show the problem. 

(I use the Q3 version)

Regards, Jill-Connie Lorentsen

2 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 23 Nov 2009, 10:55 PM
Hello Jill-Connie Lorentsen,

Enclosing the call to LoadLayout in between BeginInit and EndInit calls seems to fix the problem.

radGridView1.BeginInit(); 
radGridView1.LoadLayout("C:\\mySavedLayout"); 
radGridView1.EndInit(); 

Please let me know if this does/doesn't work for you.

- Robert
0
Jill-Connie Lorentsen
Top achievements
Rank 1
answered on 24 Nov 2009, 10:15 AM
It works, - thanks!
Tags
GridView
Asked by
Jill-Connie Lorentsen
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Jill-Connie Lorentsen
Top achievements
Rank 1
Share this question
or