This is a migrated thread and some comments may be shown as answers.

Disable or Manage ChildGridView Tabs

2 Answers 144 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bertan ULUSOY
Top achievements
Rank 1
Bertan ULUSOY asked on 02 Mar 2010, 12:58 PM
Hello,
I want to disable or change ChildGridView Tabs. Another words I want to create a Standart Hierarchy RadGridView, not Tabbed.
Could you please show me the way.
Thank you.
Bertan 

2 Answers, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 04 Mar 2010, 09:51 AM
Hi Bertan ULUSOY,

This behavior depends on AutoGenerateHierarchy property of RadGridView and your data or DataSet used for building hierarchy. To make hierarchy contains only one branch you can make it manually. Please view our example application - RadGridView - Hierarchy section.

radGridView1.DataSource = nwindDataSet.Suppliers;
GridViewTemplate template = new GridViewTemplate();
template.DataSource = nwindDataSet.Products;            radGridView1.MasterGridViewTemplate.ChildGridViewTemplates.Add(template);
GridViewRelation relation = new GridViewRelation(radGridView1.MasterGridViewTemplate); 
relation.ChildTemplate = template;   
relation.RelationName = "SuppliersProducts";
relation.ParentColumnNames.Add("SupplierID");    
relation.ChildColumnNames.Add("SupplierID");   
radGridView1.Relations.Add(relation);

Regards,
Julian Benkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Bertan ULUSOY
Top achievements
Rank 1
answered on 05 Mar 2010, 07:17 AM
I did it like you tell three days ago.
Thank you.
Tags
GridView
Asked by
Bertan ULUSOY
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Bertan ULUSOY
Top achievements
Rank 1
Share this question
or