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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Child row not expanding

Thread ID:





22505 Dec 14,2004 05:08 PM UTC Dec 14,2004 08:10 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On December 14, 2004 05:08 PM UTC

In my GridBoundDataGrid, the first time my grid displays everything works great within the child row. But I''ve got a toggle button that displays the grid in a different mode. When I click on the toggle button again, it should return the grid to the original functionality, but even though I''m calling the same code, my child row will not expand again. Is there something with the relationship I need to set so that the same code can display the child row over again? Below is how I''m setting up my relationship. Thanks, Steve DataSet ds = new DataSet(); this.dtChild.TableName = "child"; ds.Tables.AddRange(new DataTable[]{dtParent, dtChild}); DataRelation parentToChild = new DataRelation("ParentToChild", dtParent.Columns["key_no"], this.dtChild.Columns["key_no"]); ds.Relations.AddRange(new DataRelation[]{parentToChild}); this.dgMyGrid.DataSource = ds; this.dgMyGrid.DataMember = dtParent.TableName; GridHierarchyLevel level = this.dgMyGrid.Binder.RootHierarchyLevel; level.LayoutColumns(layoutItems); GridHierarchyLevel level2 = this.dgMyGrid.Binder.AddRelation("ParentToChild");

Administrator [Syncfusion]
Replied On December 14, 2004 08:10 PM UTC

You might try calling grid.Binder.ResetHierarchyLevels to see if that helps. But what are you doing now in your toggle button when you turn the hierarchies off, and what are you doing now when you try to turn the hierarchies back on?


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon