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

Self referencing hierarchical grid - horizontal scrolling with column freeze

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Clinton Smyth
Top achievements
Rank 1
Clinton Smyth asked on 05 Oct 2012, 05:24 PM
Hi

We have a self referencing hierarchical radgrid and would like to make it easier for our users to use it in our application.

Currently we have the following set which crams all the columns into the current view:

grid.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;

What we'd like to do is to change this parameter to GridViewAutoSizeColumnsMode.None and allow the user to scroll horizontally but to still keep the hierarchy on the left visible (i.e. freeze the left most column).  Is there a way to do this?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Clinton Smyth
Top achievements
Rank 1
answered on 05 Oct 2012, 10:33 PM
Found the answer!  The following did the trick:

grid.MasterTemplate.Columns[0].PinPosition = PinnedColumnPosition.Left;
Tags
GridView
Asked by
Clinton Smyth
Top achievements
Rank 1
Answers by
Clinton Smyth
Top achievements
Rank 1
Share this question
or