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.
Unfortunately, activation email could not send to your email. Please try again.

Can I assign a dataset with relations to a Treeview?

Thread ID:





3705 Apr 2,2003 08:16 PM Apr 9,2003 08:06 PM Windows Forms 2
Tags: FAQ
Asked On April 2, 2003 08:16 PM

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

Ahmed Ovais Akhter
Replied On April 8, 2003 03:33 AM

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

Replied On April 9, 2003 08:06 PM

Thanks Regards Rajaraman


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.