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

Persist Grid.SelectedIndexes

2 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
solutionfactory
Top achievements
Rank 1
solutionfactory asked on 27 Oct 2008, 10:04 AM
Hi all,
i have a problem on setting Grid.SelectedIndexes.

My grid is hirarchical with 3 levels.

1 - First i save Grid.SelectedIndexes on Session.
2 - Go to the details page
3 - On return  - Get SelectedIndexes from Session
4 - Set Grid.SelectedIndexes with GridIndexCollection getted from Session

What is the correct way to do step 4?

Thanks in advance and
best regards.

Flavio

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 Oct 2008, 11:28 AM
Hi,

Here is a code library submission which demonstrates how to maintain selection in a Hierarchical Grid on rebind.
Retain expanded/selected state in hierarchy on rebind

Thanks
Shinu.
0
solutionfactory
Top achievements
Rank 1
answered on 30 Oct 2008, 10:12 AM
Works as expected,
thanks a lot.

Flavio
Tags
Grid
Asked by
solutionfactory
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
solutionfactory
Top achievements
Rank 1
Share this question
or