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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

putting a tree view into agrid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

53945 Dec 24,2006 11:53 AM UTC Dec 26,2006 06:36 AM UTC WinForms 2
loading
Tags: GridControl
Reut
Asked On December 24, 2006 11:53 AM UTC

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 05:55 AM UTC

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 \4.4.0.49\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\4.4.0.49\windows\Grid.Windows\Samples\CustomCellTypes

Best Regards,
Haneef

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

Hi Reut,

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

Best Regards,
Haneef

CONFIRMATION

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.

Warning Icon 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.Close Icon

;