Persist Grid.SelectedIndexes

3 posts, 0 answers
  1. solutionfactory
    solutionfactory avatar
    45 posts
    Member since:
    Apr 2007

    Posted 27 Oct 2008 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Oct 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. solutionfactory
    solutionfactory avatar
    45 posts
    Member since:
    Apr 2007

    Posted 30 Oct 2008 Link to this post

    Works as expected,
    thanks a lot.

    Flavio
Back to Top