Created by Binu Koshy at 4/23/2008 5:35:35 PM
I am using a treelistview which is binded to a generic list with buisness objects where multiselect is enabled. My requirement is after a refresh of datasource (usually done by reseting the datasource), I would like to maintain the same selected nodes before refresh.
For this, before resetting the datasorce,I have stored 'Keyid' of selected business object which i have obtained from 'TreeListView.Selection' and once new datasource is set, nodes with corresponding keyids are obtained using FindNodeByKeyFieldValue and selected property node will be set to 'true'
This hits the performance of reloading and as well as, its not working with all the nodes ( there are situation which arose where 'TreeListView.Selection.Count' will show a correct number of selected node but the nodes may not be selected)
Please provide a solution
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.