Spreadsheet / Data Analysis / Merge Cells

Blazor Spreadsheet Example - Merge Cells

Loading Syncfusion Blazor Server Demos…

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
AA
AB
AC
AD
AE
AF
AG
AH
AI
AJ
AK
AL
AM
AN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Student Weekly Timetable — Fall 2025
Time SlotWeekdaysWeekend
TimeMonTueWedThuFriSatSunExtraRemarks
08:00-09:00MathMathMathMathMathWorkshopsWorkshopsLabBring Notes
09:00-10:00LabBring Notes
10:00-11:00PhysicsPhysicsPhysicsPhysicsPhysicsLabBring Notes
11:00-12:00LabBring Notes
12:00-01:00ChemistryChemistryChemistryChemistryChemistryLabBring Notes
01:00-02:00LabBring Notes
02:00-03:00EnglishEnglishEnglishEnglishEnglishLabBring Notes
03:00-04:00LabBring Notes
04:00-05:00Computer ScienceComputer ScienceComputer ScienceComputer ScienceComputer ScienceLabBring Notes
05:00-06:00LabBring Notes

This sample demonstrates the Spreadsheet merge cells feature and how merging to create clear section headers and improve the visual layout of your data.

The Merge Cells feature allows you to combine two or more adjacent cells into a single larger cell. This is useful for creating section headers, labels, or visually organizing data in your spreadsheet.

In this demo, you can merge cells by selecting them and choosing merge options from the HomeMerge section in the ribbon

The merge cells feature supports multiple merge options:

  • Merge & Center - Combines the selected cells into one and centers the content horizontally for better visual presentation.
  • Merge Across - Merges cells horizontally in each row of the selection, creating separate merged cells per row for structured layouts.
  • Merge Cells - Combines the selected cells into a single cell without changing text alignment, preserving original formatting.
  • Unmerge - Splits a merged cell back into its original individual cells content remains in the top-left cell after unmerging.

You can enable or disable merging using the AllowMerge property. To merge or unmerge cells programmatically, use the MergeAsync, or revert a merge with UnmergeAsync.

For more detailed information about merge cells, refer to the merge cells documentation.

Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE