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.

Data grid cells formating

Thread ID:





5256 Jun 25,2003 10:46 PM Jun 26,2003 02:34 AM Windows Forms 1
Tags: GridControl
Asked On June 25, 2003 10:46 PM

How do I increase the height of the row and have 2 lines of text each line with different font name and different font size

Administrator [Syncfusion]
Replied On June 26, 2003 02:34 AM

To set the height of a row, you would use code like grid.Model.RowHeights[row] = 40; To show 2 fonts in 1 cell, in 1.6, you can set the cell style's CellType to "RichText", and use richtext to show the mixed fonts. See the Syncfusion\Essential Suite\Grid\Samples\CellTypes\RichTextCells sample. Or, you could handle the grid's DrawCell event, and use calls to e.Graphics.DrawString to draw the strings in different fonts. Or, you could derive a cell control that did DrawString at the cell level in the derived renderer class's Draw method.


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.