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.

Hide empty nested table on a GDC

Thread ID:

Created:

Updated:

Platform:

Replies:

102695 Feb 22,2012 06:12 AM Feb 27,2012 05:04 AM ASP.NET Web Forms (Classic) 2
loading
Tags: GridGroupingControl
Administrator [Syncfusion]
Asked On February 22, 2012 06:12 AM

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



Administrator [Syncfusion]
Replied On February 22, 2012 06:17 AM

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

Nvm


Ramesh V [Syncfusion]
Replied On February 27, 2012 05:04 AM

Hi Zigzag,

Thank you for your update.

Regards,
Ramesh


CONFIRMATION

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.

;