Hi,
This does with small data, but if the data is huge and grouping is by multiple columns(like 5 column) , then it behaves very very slowly.Is there a way to achieve the same behaviour in a more efficient and performent way?
Thank you,
Developer
>Hi Kai,
>
>The Attached sample demonstrates the feature single group caption for multiple groups in the grid. It also implements the IGridRowHeight interface and its routines for getting,setting and preventing row height for child group elements(other than the first group) .Here is a code snippet.
>
>private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
>{
> GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;
> if(e.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Caption && e.TableCellIdentity.ColIndex == 0 && e.TableCellIdentity.RowIndex > 0)
> {
>
> if(e.TableCellIdentity.DisplayElement.ParentGroup.Name != ParentGroupName)
> {
> ((IGridRowHeight)e.TableCellIdentity.DisplayElement).RowHeight = 0;
> e.Handled = true;
> }
> }
>}
>
>Please refer to the attachment for more details.
>
http://www.syncfusion.com/Support/user/uploads/GGCSingleGroupCaptiont_a44d7b46.zip>
>For more details about the Resizing rows in grid, See the browser sample.
>syncfusion\essential studio\3.2.1.0\Windows\Grid.Windows\samples\Grouping\ResizableRows
>
>Let me know if this helps.
>Best Regards,
>Haneef