I''m using GridDataBoundGrid, after I add a relation like this:
GridHierarchyLevel hierarchyLevel = this.gridDataBoundGrid.Binder.AddRelation("Children");
there will be a "+" symbol before every row. when you click it, the children rows will expand. This symbol always exist even if one row(object) does not contain a child, how to avoid it?
thank you very much
ADAdministrator Syncfusion Team April 22, 2004 02:58 AM
This is by design. The child does not know anything about the number of children until it tries to open teh node and populate the child table.
So, you do have to try to open the node to know whether there are children. Here is a ondemand solution in an DrawCell Handler. It ''silently'' opens the node to see if there are children.