The following code just display the first level node A, I added B as A's child,but node B doesn't show up. Do you hev ideas?
Thasks!
// set tree column
col1.Key = "name";col2.Key = "last";col3.Key = "curr";col4.Key = "diff";
UltraTreeNode aaNode = utree.Nodes["A"].Nodes.Add("B");
aNode.Cells["name"].Value = "A";aNode.Cells["last"].Value = "432";aNode.Cells["curr"].Value = "401";aNode.Cells["diff"].Value = "31";
aaNode.Cells["name"].Value = "B";aaNode.Cells["last"].Value = "333";aaNode.Cells["curr"].Value = "222";aaNode.Cells["diff"].Value = "111";
Your ColumnSet doesn't contain any child band information. A child band is really just a special kind of column. What you need to do is add a column to your columnset that represents the child band and has it's IsChaptered property set to true.
Could you porvide a coup of lines code for this?