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

WPF TreeViewAdv MultiColumn programmatically

Hi,

i have to fill a TreeView programmatically, with enabled MultiColumns and without binding.

Is there any way to display the column-values of a TreeViewItemAdv in the corresponding column of the TreeView without using DataBinding (without DisplayMemberBinding on Header/Dataobject)?

Is the DisplayMemberBinding the only way to tell the TreeView to display the needed valus for each colum?

Best regards,
Daniel

1 Reply

BA Berkunath A Syncfusion Team March 11, 2014 12:26 PM UTC

Hi Daniel,

 

Thank you for contacting Syncfusion support.

 

We have prepared a sample that tries to meet your requirement. In this we have modify the CellTemplate for TreeViewColumn and you can customize the header for each column of TreeViewItem by CellTemplate as per your requirement. We have attached the sample. Please have a look at the sample and let us know if it helps you.

 

If we have misunderstood your requirement, please update us with more information about requirement.

 

Regards,

Berkunath A


Attachment: MultiColumnTreeViewAdvSample_b189e4ed.zip

Loader.
Live Chat Icon For mobile
Up arrow icon