Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
13030 | Apr 19,2004 11:23 AM UTC | Apr 19,2004 06:23 PM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
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 This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.