Treeview binding

  • Thread starter Thread starter minh.tri.truong
  • Start date Start date
M

minh.tri.truong

Hello,

I have a field in a table that will contains this kind of information
(Key/Value):

P / Politique
P_INT / Politique intérieur
P_INT_GOV / Gouvernement
P_EXT / Politique exterieur
P_EXT_USA / Politique USA
P_EXT_FRANCE / Politique France

Any clue, on how I can fill/bind it to a treeview to obtain:

P
INT
GOV
EXT
USA
FRANCE

Thanks!

SIlat
 
The standard windows forms treeview does not support data binding - so
you would need to parse the table yourself and add the tree nodes
programmatically. You also need to maintain the relationship between
the tree nodes and the data yourself.

If you looking for a databound tree solution then take a look at
Infralution's Virtual Tree. This supports binding to any .NET data set
and many other data sources. This takes a lot of the effort out of
developing a tree type interface. You can get more information and
download a fully functional evaluation from
www.infralution.com/virtualtree.html

Regards
Grant Frisken
Infralution
 
Back
Top