I have read and implemented the information from this post: Retain expanded/selected state in hierarchy on rebind, and it works well as long as I do not use column filtering. When I filter the parent grid columns, the incorrect data items are expanded. The index is the same, but the in data in the row is different and the child of that row should no longer be expanded.
From what I can tell, the recommended method of retaining the expanded state is based off of storing DataSetIndex of the row in a hash table. When you filter a parent column, the original parent row can change to a different index in the grid or even disappear. I would like to know the recommended practice for this scenario. Should I simply closed all expanded child grids or could I possibly use something other than an index (such as a primary key of the data row) to identify which rows should be expanded?
If I should simply kill all the child grids, what is the best way to do this?
Thanks,
Jim
From what I can tell, the recommended method of retaining the expanded state is based off of storing DataSetIndex of the row in a hash table. When you filter a parent column, the original parent row can change to a different index in the grid or even disappear. I would like to know the recommended practice for this scenario. Should I simply closed all expanded child grids or could I possibly use something other than an index (such as a primary key of the data row) to identify which rows should be expanded?
If I should simply kill all the child grids, what is the best way to do this?
Thanks,
Jim