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

Hide empty nested table on a GDC

Hallo,

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:

GDC.VisibleColums[0].ColumnStyle.CellType

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.

zigZag



2 Replies

AD Administrator Syncfusion Team February 22, 2012 11:17 AM UTC

Ah sry, wrong Forum. I want to post on the WPF Forum.

Nvm



RV Ramesh V Syncfusion Team February 27, 2012 10:04 AM UTC

Hi Zigzag,

Thank you for your update.

Regards,
Ramesh


Loader.
Live Chat Icon For mobile
Up arrow icon