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

Hide empty nested table on a GDC

Thread ID:





102696 Feb 22,2012 11:16 AM UTC Feb 23,2012 09:31 AM UTC WPF 1
Tags: GridControl
Administrator [Syncfusion]
Asked On February 22, 2012 11:16 AM UTC


I have a some problems to hide empty nested tables in a GDC.

I have a GDC which i fill with a DataSet, which have 4 tables and 3 relations. Its work like a treeNode and it looks fine.
The first table contains the "root", as some kind of parent item, and the following tables the childs.
Each relation is like a treeNode, so the first table have a relation to the second and the second to the third table and so on.

But now i have the problem, that rows, which have no children, show empty tables.
I tryed a lot, to solve this problem... codesnipes like:

public class GroupingChildTable : GridChildTable, IGridGroupOptionsSource
public GroupingChildTable(Syncfusion.Grouping.Element parent)
: base(parent)
{ }
public override int GetVisibleCount()
if (this.Details == null || this.Records.Count == 0)
return 0;
return base.GetVisibleCount();

But there i get a error, and he cant finde my Namespeace anymore. God knows why?

I also tryed to set the CellType on "static", but dindt realy find a beginning... just:


But there i cant set the type on "static". And i dont wont to set the hole column on "static" just a single cell or row.

looking forward to get some help.


Rajasekar [Syncfusion]
Replied On February 23, 2012 09:31 AM UTC

HI ZigZag,

Thanks for choosing Syncfusion products.

You can achieve your requirement by setting HideEmptyChildGrid property as True in the GridDataControl. This is working fine for the Collection of objects however we are able to find that, this property does not work while binding DataTable to the GridDataControl. We have fixed this issue internally and we request you to create an Incident in our Direct Trac Support System by using the below link to get patch for this fix.


Please let us know if you have any queries.



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