Question on the Tree view

Ades

New member
Joined
Mar 5, 2010
Messages
1
Programming Experience
3-5
Hello,
I created a tree view and I would like to know if (and how) I can add to a given node a datatable (displayed in a datagridview) with a click on the same node.

Let me know if my question is not well described.
Thank you
 
I assume that you mean that you have a separate DataGridView and you want to change what's displayed in that grid depending on which node is selected in the tree. The simplest way to do that is to assign the DataTables to the Tag properties of the corresponding nodes. When the user selects a node you simply get the corresponding table from its Tag and bind that to the grid.
 
Back
Top