Hi,
when I have several rows in a grid, do I then have the opportunity to show in Row[1] different columns than in Row[2]. Or does this always have an effect on all rows in the grid?
Alex
All of the rows in the same band must have the same columns.
The WinTree control has a free-form mode where each node in the same list can have a different set of columns. But the tree lacks certain grid features like filtering and summaries. So if you don't need those feature, you might want to consider using the tree.
Mike,
I bound my tree to a dataset. Concerning the values in several columns in my datatable, I want to add different columns for EVERY node in the tree.
My suggestion is to create different column sets and add them to my nodes, additionally to the columns which already exists from the data set, but I dont know how to do this.
Thanks in advance for any help.
Hi Alex,
If you want different columns in every node, then you cannot use a DataSet. A DataSet does not allow for heterogenous data in the same collection - the columns are defined on the DataTable.
In fact, I don't know of any data source that does this, so using data binding is probably not an option in this case.
If you want different columns in every node, then you will probably need to add the nodes to the tree in code using the Nodes.Add method and assign a ColumnSet directly to each individual node.