Hi Vincent,
You can access the child levels with the GridHierarchyLevel class. Here is some code that sets the child and grand child''s columns header text and the celltype(style property).
GridHierarchyLevel hlParentToChild = this.gridDataBoundGrid3.Binder.AddRelation("ParentToChild");
GridHierarchyLevel hlChildToGrandChild = this.gridDataBoundGrid3.Binder.AddRelation("ChildToGrandChild");
GridHierarchyLevel hlParent = this.gridDataBoundGrid3.Binder.RootHierarchyLevel;
hlParentToChild.InternalColumns["childID"].HeaderText = "NewChilID";
hlParentToChild.InternalColumns["childID"].StyleInfo.CellType = "ComboBox";
hlChildToGrandChild.InternalColumns["GrandChildID"].HeaderText = "NewGrandChildID";
hlChildToGrandChild.InternalColumns["GrandChildID"].StyleInfo.CellType = "ComboBox";
You can hide the child level header''s by setting the showheaders property.
hlParentToChild.ShowHeaders = true;
hlChildToGrandChild.ShowHeaders = true;
But to hide the parent header, you can just hide that particular header row.
this.gridDataBoundGrid3.Model.Rows.Hidden[0] = true;
Attached is a sample showing this implementation.
Regards,
Jay N.
TripleMasterDetailGrid1_8668.zip