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
VN
Vidya Nara
September 21, 2009 10:17 PM UTC
Sorry, typo..The text column spans R0C0:R0C1
LS
Lingaraj S
Syncfusion Team
September 22, 2009 11:39 AM UTC
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.
VN
Vidya Nara
September 22, 2009 04:49 PM UTC
Works fine..thanks a lot !
regards,
Vidya
LS
Lingaraj S
Syncfusion Team
September 23, 2009 08:31 AM UTC
Hi Vidya,
Thanks for the update.
Please let me know if you have any queries.
Regards,
Lingaraj S.