We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Merge cells - gridControl

Thread ID:





8304 Oct 31,2003 01:48 AM UTC Oct 31,2003 07:48 AM UTC WinForms 1
Tags: GridControl
Asked On October 31, 2003 01:48 AM UTC

How can I simply merge multiple cells in a standard gridControl (not data bound). I want to merge (not cover) the cells because I have text that I want to span multiple columns.

Administrator [Syncfusion]
Replied On October 31, 2003 07:48 AM UTC

MergeCells in Essential Grid refers to drawing adjacent cells as one cell IF all the adjacent cells hold the same value. If you want to have long text from one cell float over adjacent cells, this is referred to as floatingcells. To allow cells to float, you need to set the grid.FloatingCellsMode property and the adjacent cells must be empty. You cannot float over an occupied cell. Here are some snippets. this.gridControl1.FloatCellsMode = GridFloatCellsMode.OnDemandCalculation; GridStyleInfo style = this.gridControl1[2,1]; style.Text = "this is some long text that should float over adjacent cells"; There are style properties that you can use to turn off floating support at the style level (style.FloatCell = false). You can also use style.FloodCell to prevent a cell from being flooded.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon