data in treeview

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

How to get data into treeview control?
I'm using dataAdapter and dataSet for communication with database.

Hrcko
 
Hrvoje,

The datagrid has no datasource therefore the most simple option is in my
opinion just to loop throug your dataset and set the treeview accoording to
that.

When it is about one table you can for the same use the datareader and set
it in the reading loop.

I hope this helps

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

treeview control with data 1
treeview control continous... 3
click 3
treeView control layout 1
treeView keydown 8
How to populate a treeview from a dataset 9
Dataset to TreeView 2
TreeView and DataBinding 3

Back
Top