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

GridGrouping: Need to hide some tables received from the data set datasource

I need to hide some tables received from the data set datasource, as they represent service data.

4 Replies

AD Administrator Syncfusion Team August 31, 2006 04:48 AM UTC

Hi Konstantin,

The attached sample demonstrates the features of hiding the particular table in the grid. It also shows you how to implement the IGridRowHeight interface and its routines for getting and setting row heights for elements. Below is a code snippet

foreach( Element el in this.gridGroupingControl1.GetTable("ChildTable").DisplayElements)
{
IGridRowHeight ig = el as IGridRowHeight;
if( ig != null)
{
ig.RowHeight = 0;
}
}

Here is a sample.
http://www.syncfusion.com/Support/user/uploads/GGC_NestedTabelHide_35d370ac.zip

Let me know if this helps.
Regards,
Haneef


KB Konstantin Babiy August 31, 2006 12:27 PM UTC

Well, it doesn''t work. It sounds so strange to me that there is no casual way of defining which tables to show or not to show in the grid...


AD Administrator Syncfusion Team August 31, 2006 04:07 PM UTC

Hi Konstantin,

You can hide the table in the GGC, by having a customengine. Derive the GridChildTable in the CustomGroupingEngine and override the GetVisibleCount(), there check for the tablename you want to hide through the ParentTableDescriptor.Name and return 0.

Refer to the attached sample for more details.
Here is a sample
http://www.syncfusion.com/Support/user/uploads/GGC_HideTable_fd9f811a.zip

Regards,
Rajagopal


KB Konstantin Babiy August 31, 2006 07:46 PM UTC

Thank you, Rajagopal, your advice really helped me much!

Loader.
Live Chat Icon For mobile
Up arrow icon