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.
Unfortunately, activation email could not send to your email. Please try again.

Merge cells - gridControl

Thread ID:





8304 Oct 30,2003 08:48 PM Oct 31,2003 02:48 AM Windows Forms 1
Tags: GridControl
Asked On October 30, 2003 08:48 PM

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 02:48 AM

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.

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.