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

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

Thread ID:





48550 Aug 30,2006 02:30 PM UTC Aug 31,2006 07:46 PM UTC WinForms 4
Tags: GridControl
Konstantin Babiy
Asked On August 30, 2006 02:30 PM UTC

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

Administrator [Syncfusion]
Replied On 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.

Let me know if this helps.

Konstantin Babiy
Replied On 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...

Administrator [Syncfusion]
Replied On 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


Konstantin Babiy
Replied On August 31, 2006 07:46 PM UTC

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


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