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


Thread ID:





40688 Feb 9,2006 01:12 PM Feb 14,2006 08:30 AM Windows Forms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On February 9, 2006 01:12 PM

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 02:43 PM

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 05:11 AM

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 01:06 PM

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 08:30 AM

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.

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.