|
-
Feb 19th, 2007, 02:12 PM
#1
Thread Starter
Member
Checking Treeview from Datatable
I am creating a wizard like application that lets users select Provider/SubProvider combinations. I am populating a treeview from a datatable (called dtAllProviders). The treeview lets the user check all providers and subproviders. When the user clicks next I store all the selected values into a datatable(called dtSelectedProviders). When the User clicks back, I want to populate the treeview with dtAllProviders, then go through and check all the nodes for their corresponding record in dtSelectedProviders. I am really stuck on how to go through checking all the nodes. Any ideas or sample code is appreciated. Thanks.
-
Feb 19th, 2007, 05:09 PM
#2
Re: Checking Treeview from Datatable
Wouldn't it be better to use a single DataTable and add an extra Boolean column that indicates whether it's selected or not? Also, if you don't destroy your TreeView then there's no need to repopulate if the user presses the Back button.
-
Feb 20th, 2007, 11:21 AM
#3
Thread Starter
Member
Re: Checking Treeview from Datatable
That is a good idea just adding an extra column to the datatable. Thanks for the help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|