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
close icon

putting a tree view into agrid cell

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?

2 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon