We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem with GridDataBoundGrid.Binder.AddRelation

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

1 Reply

AD Administrator 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.

Loader.
Live Chat Icon For mobile
Up arrow icon