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.

GGC - How to hide the row below header when using columnset

Thread ID:

Created:

Updated:

Platform:

Replies:

90198 Sep 21,2009 06:16 PM Sep 23,2009 04:31 AM Windows Forms 4
loading
Tags: Grouping
Vidya Nara
Asked On September 21, 2009 06:16 PM

Hi,

I am using the gridgroupingcontrol and creating a column set consisting of two columns out of which one is a text column and the other is a "PushButton" type. The text column spans R0C0:R1C1
and pushbutton spans R1C0:R1C1.It works fine for the record rows.

However, I have an extra row below the header row and the merged column shows a button. How do I hide the extra row below the header row?


Thank you.

regards,
Vidya

Vidya Nara
Replied On September 21, 2009 06:17 PM

Sorry, typo..The text column spans R0C0:R0C1

Lingaraj S [Syncfusion]
Replied On September 22, 2009 07:39 AM

Hi Vidya,

Thank you for your interest in Syncfusion products.

If you want to hide the Row in GridGroupingControl, then please try using QueryRowHeights event in TableModel to achieve your requirement.

Refer the code below:

// It is used to hhide a row
this.gridGroupingControl1.TableModel.QueryRowHeight += new GridRowColSizeEventHandler(TableModel_QueryRowHeight);
void TableModel_QueryRowHeight(object sender, GridRowColSizeEventArgs e)
{
if (e.Index == HideRowIndex)
{
e.Size = 0;
e.Handled = true;
}
}
// It is used to repaint the GridGroupingControl
this.gridGroupingControl1.TableControlVScrollPixelPosChanged += new GridTableControlScrollPositionChangedEventHandler(gridGroupingControl1_TableControlVScrollPixelPosChanged);
void gridGroupingControl1_TableControlVScrollPixelPosChanged(object sender, GridTableControlScrollPositionChangedEventArgs e)
{
e.TableControl.UpdateWithDrawClippedGrid(e.TableControl.Bounds);
}


Please let me know if it helps.

Regards,
Lingaraj S.

Vidya Nara
Replied On September 22, 2009 12:49 PM

Works fine..thanks a lot !

regards,
Vidya

Lingaraj S [Syncfusion]
Replied On September 23, 2009 04:31 AM

Hi Vidya,

Thanks for the update.

Please let me know if you have any queries.

Regards,
Lingaraj S.

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.

;