We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Can I assign a dataset with relations to a Treeview?

Hi I am having two tables and master,childrecords between it, can I assign the dataset to a treeview which will contain automatically Itemdescription shown with ItemID as key/tag Regards Rajaraman

2 Replies

AO Ahmed Ovais Akhter April 8, 2003 07:33 AM UTC

Hello Rajaraman I am afraid that you can not assign the dataset with relations directly to the treeview. Sorry for the BAD news. But what can do is that you can define a relation in the dataset and loop through the parent table make a row for each record and call GetChildRows method pass it the relation this will return u the all the related child rows now you can make the tree nodes for all these rows. and offcource if you relations for endless level you can make a method and call it recursively


RA Rajaraman April 10, 2003 12:06 AM UTC

Thanks Regards Rajaraman

Loader.
Up arrow icon