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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





40688 Feb 9,2006 06:12 PM UTC Feb 14,2006 01:30 PM UTC WinForms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On February 9, 2006 06:12 PM UTC

Hi, How do I hide rowheaders of the child table related theough RelatedMasterDetails, when there is no related records? Thank you.

Administrator [Syncfusion]
Replied On February 9, 2006 07:43 PM UTC

Let me elaborate further. The datasource is a DataSet with 3 related Tables. Tables 1 and 2 - always have records, but table 3 may or may not have related tables. Hod do I force the GGC to hide the Headers of the 3 tables whne there no related records. Please see attached screenshot. Thank you


Administrator [Syncfusion]
Replied On February 10, 2006 10:11 AM UTC

Hi, Please try this code private void gridGroupingControl1_RecordExpanded(object sender, Syncfusion.Grouping.RecordEventArgs e) { if(e.Record.ChildTableGroupLevel == 1) { int ExpandedRecordCount = e.Record.GetNestedTablesVisibleCount(); int rowIndex = this.gridGroupingControl1.Table.NestedDisplayElements.IndexOf(e.Record); if( ExpandedRecordCount == 2) { ExpandedZeroRecord.Add(e.Record); this.gridGroupingControl1.TableModel.RowHeights[ rowIndex + 1 ] = 0; } } } Here is a sample for implementing it. GroupingMaster.zip Let me know if you need any further assistance. Regards, Haneef

Administrator [Syncfusion]
Replied On February 10, 2006 06:06 PM UTC

Thank you for the reply. I understand approach, but this does not work for my case. My 3 child table is always expanded - and the RecordExpanded event fires only for ChildTableGroupLevel=0; What other event can I use to set RowHeight=0? Thank you

Administrator [Syncfusion]
Replied On February 14, 2006 01:30 PM UTC

Hi, Please try this code #region ExpandAllRecords Section flag = false; this.gridGroupingControl1.Table.ExpandAllRecords(); SetHeight(); flag = true; #endregion Here is modified sample. GroupingMaster1.zip Let me know if you need any further assistance. Regards, Haneef


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