DataGridView TreeColumn

0
0

Hi,

do you have any example about TreeColumn in DataGridView? I tried it but nothing happen.

Thank for your help,

Page

  • You must to post comments
0
0

The TreeColumn property changes the default column that shows the tree +/- buttons. The default is the first visible non-locked column. To create hierarchical rows simply assign the row.ParentRow.

Then you can use row.IsParent, row.ChildRows, row.Expand(), row.ExpandAll(), row.IsExpanded, row.Collapse(), row.CollapseAll() and the grid.RowExpanded and grid.RowCollapsed events.

Obviously the grid cannot be data bound, but you can use grid.Fill(data) and grid.Append(data) to fill from a data source remaining unbound.

And you can use the DataGridSummaryRowExtension https://wisej.com/extensions/ to automatically group columns using many different aggregation options.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.