The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
LSLingaraj 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.
VNVidya NaraSeptember 22, 2009 04:49 PM UTC
Works fine..thanks a lot !
regards, Vidya
LSLingaraj S Syncfusion Team September 23, 2009 08:31 AM UTC