It's impossible to incorporate two tree columns into the same grid because the two parent nodes in the same row can have different child row sets in the general case.Most likely, you need to find another representation for your data.
// Var to reference the last added row iGRow myRow; // Create one column for our tree iGrid1.Cols.Add("Tree", 200); // Add the first root node myRow = iGrid1.Rows.Add(); myRow.Level = 0; myRow.TreeButton = iGTreeButtonState.Visible; myRow.Cells[0].Value = "Root node"; // Add two child nodes to the root without nested items myRow = iGrid1.Rows.Add(); myRow.Level = 1; myRow.TreeButton = iGTreeButtonState.Hidden; myRow.Cells[0].Value = "Child node 1"; myRow = iGrid1.Rows.Add(); myRow.Level = 1; myRow.TreeButton = iGTreeButtonState.Hidden; myRow.Cells[0].Value = "Child node 2";
The 10Tec Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies. More Details Close