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.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

48550 Aug 30,2006 02:30 PM UTC Aug 31,2006 07:46 PM UTC Windows Forms 4
loading
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.
http://www.syncfusion.com/Support/user/uploads/GGC_NestedTabelHide_35d370ac.zip

Let me know if this helps.
Regards,
Haneef

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
http://www.syncfusion.com/Support/user/uploads/GGC_HideTable_fd9f811a.zip

Regards,
Rajagopal

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

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

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.

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

;