Merge columns and Rows

Hi everyone,

I need to merge some columns or rows in some cases using Grid component, I found a way but I want to know if you have the best way to do it.

Here is the example i want to do:


Thanks!

Best Regards


1 Reply 1 reply marked as answer

VN Vignesh Natarajan Syncfusion Team February 9, 2022 06:15 AM UTC

Hi Kevin,  
 
Thanks for contacting Syncfusion support  
 
Query: “I need to merge some columns or rows in some cases using Grid component 
 
We suggest you to achieve your requirement using Stacked header feature of Grid. Using this feature, we can render multiple level of columns under one header as per your screenshot. Kindly refer the below online demo for your reference 
 
 
Also if you want to merge certain row or cells in Grid, kindly refer our Row / Column spanning feature to achieve this requirement. Refer the below demo and UG documentation for your reference 
 
RowSpanning:  
 
Column Spanning: 
 
Please get back to us if you have further queries.   
 
Regards, 
Vignesh Natarajan   


Marked as answer
Loader.
Up arrow icon