Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Nested grid question

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Nested grid question
Link Posted: 11-Dec-2005 05:22
hello,
i have a data table with two tables and a relation.
i connected them to a flygrid, and it shows me a nested grid.

so far, so good...
how can i make that the connecting "plus" will be on the first column presented, not necceraly on the connecting column.

if i make the connecting column's visability false the nested grid becomes a regular grid.

thank you for your help!
Link Posted: 11-Dec-2005 14:15
Add HierachyColumn as first column in your grid.
HierarchyColumn and TreeViewColumn classes designed to reflect hierarchical structures (treeviews, nested grids) in the FlyGrid.
Link Posted: 11-Dec-2005 14:22
if i make the connecting column's visability false the nested grid becomes a regular grid.

IMHO, the optimal way to make transition Grid with nested grids regular Grid is removal or addition relationships to connected dataset.
PS: but in this case you can use NineRays.Windows.Forms.Grids.NestedHierachyColumn from (NineRays.FlyGrid.Columns assembly) and show/hide this column. This column doesn't connected to some field from datasource and display hierachical structure only. This column can be used to change indentation and make MS Access like table views.
Link Posted: 11-Dec-2005 20:46
I've done it, and it works!
thanks for your help!