M
Mike Demmons
I am experiencing strange behavior from the Standard
Windows Forms TreeView control.
My application retrieves a dataset from a Web-Service. If
the download was sucessful, I call the Dataset.WriteXml()
method to persist the dataset to the local disk. The
next time the app runs, I check to see if the Xml file
exists, and if it does, I call ReadXml() instead of going
to the webservice. (The data doesn't change often).
From the dataset, I generate a six-level treeview.
Everything works fine the first time, until I choose to
refresh the dataset, and re-generate the treeview. The
tree goes blank, except for a single plus/minus image.
When I click on the 'node', it seems to expand, but no
data is being displayed.
I am doing the following when I refresh the data:
1. Clear the contents of the dataset
2. Retrieve the data again from the web-service
3. Remove all nodes from the tree-view
4. Re-build all nodes from the dataset
This process works great when I first run the program,
but when I try to refresh the dataset while it is
running, it gives me grief.
Anyone have any ideas? Sorry for the long winded
explanation. Any help would be appreciated.
........../mike
Windows Forms TreeView control.
My application retrieves a dataset from a Web-Service. If
the download was sucessful, I call the Dataset.WriteXml()
method to persist the dataset to the local disk. The
next time the app runs, I check to see if the Xml file
exists, and if it does, I call ReadXml() instead of going
to the webservice. (The data doesn't change often).
From the dataset, I generate a six-level treeview.
Everything works fine the first time, until I choose to
refresh the dataset, and re-generate the treeview. The
tree goes blank, except for a single plus/minus image.
When I click on the 'node', it seems to expand, but no
data is being displayed.
I am doing the following when I refresh the data:
1. Clear the contents of the dataset
2. Retrieve the data again from the web-service
3. Remove all nodes from the tree-view
4. Re-build all nodes from the dataset
This process works great when I first run the program,
but when I try to refresh the dataset while it is
running, it gives me grief.
Anyone have any ideas? Sorry for the long winded
explanation. Any help would be appreciated.
........../mike