# Cell Merging

FlexGrid for WinForms allows you to merge cells with same values and hence, enhances the clarity of grid data. Know more about various merging scenarios here.

## Content

FlexGrid allows you to merge cells with same values, making them span multiple rows or columns. This capability is useful for enhancing appearance and clarity of data displayed in the grid. The effect of these settings is similar to the HTML \<ROWSPAN> and \<COLSPAN> tags.

Cell merging has several possible uses. For example, you can use it to create merged table headers, merged data views, or grids where the text spills into adjacent columns. This section discusses these scenarios in the topics below.

| **Topic** | **Snapshot** | **Content** |
| ----- | -------- | ------- |
| [Auto-merge](/componentone/docs/win/online-flexgrid/features/merge/auto-merge) | ![](https://cdn.mescius.io/document-site-files/images/2f10b028-0ae8-4c29-a102-4d67578c339b/images/free-merge.png) | Discusses about how to enable automatic merging in grid.<ul><li><a href="/componentone/docs/win/online-flexgrid/features/merge/auto-merge#1">Free auto-merge</a></li><li><a href="/componentone/docs/win/online-flexgrid/features/merge/auto-merge#2">Restricted auto-merge</a></li><li><a href="/componentone/docs/win/online-flexgrid/features/merge/auto-merge#1">Merge table headers</a></li></ul> |
| [Handle Spilling Text](/componentone/docs/win/online-flexgrid/features/merge/handle-spilling-text) | ![](https://cdn.mescius.io/document-site-files/images/2f10b028-0ae8-4c29-a102-4d67578c339b/images/handle-spill.png) | Discusses how to display long texts in normal and node rows.<ul><li><a href="/componentone/docs/win/online-flexgrid/features/merge/handle-spilling-text#1">Handle Spill in Normal Cells</a></li><li><a href="/componentone/docs/win/online-flexgrid/features/merge/handle-spilling-text#2">Handle Text in Node Rows</a></li></ul> |
| [Custom Merge](/componentone/docs/win/online-flexgrid/features/merge/custom-merge) | ![](https://cdn.mescius.io/document-site-files/images/2f10b028-0ae8-4c29-a102-4d67578c339b/images/custom-merge.png) | Discusses about ways to customize the default merging behavior.<ul><li><a href="/componentone/docs/win/online-flexgrid/features/merge/custom-merge#1">Method 1: Use IComparer interface</a></li><li><a href="/componentone/docs/win/online-flexgrid/features/merge/custom-merge#2">Method 2: Override the GetMergedRange method</a></li></ul> |

## See Also

**Documentation**

[Sort](/componentone/docs/win/online-flexgrid/features/sort)

[Filter](/componentone/docs/win/online-flexgrid/features/filter)

[Search](/componentone/docs/win/online-flexgrid/features/filter/search)

[Group](/componentone/docs/win/online-flexgrid/features/group)