Problem with empty nested tables

Hello,

Right now, I`m having some problem with not showing empty child/nested table. I have something like this:
Table1 has 1 nested table called Table2
Table2 has 2 nested table called Table3 and Table4, but for each row in Table2 only one of the nested tables will have data.

The problem I`m facing right now, is the empty table always show it`s headers, even when it has no data.

I tried using:

grid.ChildGroupOptions.ShowEmptyGroups = False
grid.NestedTableGroupOptions.ShowEmptyGroups = False

and for the GridRelationDescriptor that declares the relation between Table2 and Table3 and Table4 I tried this:

gridRelationDescriptor.ChildTableDescriptor.ChildGroupOptions.ShowEmptyGroups = False
gridRelationDescriptor.ChildTableDescriptor.TopLevelGroupOptions.ShowEmptyGroups = False


Neither worked. Can you guys help me?


1 Reply

JJ Jisha Joy Syncfusion Team January 20, 2011 11:21 AM UTC

Hi Ivan,

You could obtain the KB article 'to conditionally hide the plus minus button when there is no child records to show up' from the following link:

http://www.syncfusion.com/support/kb/721/How-to-hide-the-ChildTable-that-doesn


Sample mentioned in the kb can be obtained from the following link:

http://help.syncfusion.com/samples/kb/grid.windows/GGCHideEmptyChildTable/HideEmptyChildTables.zip


Please let me know if you have any queries.

Regards,
Jisha



Loader.
Up arrow icon