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.

putting a tree view into agrid cell

Thread ID:





53945 Dec 24,2006 06:53 AM Dec 26,2006 01:36 AM Windows Forms 2
Tags: GridControl
Asked On December 24, 2006 06:53 AM

I saw all the samples of how to put different controls into grid cells. Is it also possible to put a tree view into a grid cell?

Administrator [Syncfusion]
Replied On December 26, 2006 12:55 AM

Hi Reut,

Do you want a grid with a single TreeView cell or a grid with many TreeView cells?

If you want a single Tree cell, then create an instance of your TreeView control. Then subscribe to the QueryCellStyleInfo event in the grid. If e.TableCellIdentity points to the cell where you want to see this treeview, then set e.Style.Control = yourInstanceOfTreeView and set e.Style.CellType = "Control".

If you want manu treeview cells, then your would have to derive a custom cell type like the ones in \\windows\Grid.Windows\Samples\CustomCellTypes\CalendarCells\. Then to use your custom cell type in a GGC, you need to register this celltype with the grid as shown in this sample.s\Syncfusion\Essential Studio\\windows\Grid.Windows\Samples\CustomCellTypes

Best Regards,

Administrator [Syncfusion]
Replied On December 26, 2006 01:36 AM

Hi Reut,

Please refer to the attached sample for implementing the TreeView control cell type in a GridControl.

Best Regards,


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.