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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Data grid cells formating

Thread ID:

Created:

Updated:

Platform:

Replies:

5256 Jun 26,2003 02:46 AM UTC Jun 26,2003 06:34 AM UTC WinForms 1
loading
Tags: GridControl
SUPRIYA GANGOLLI
Asked On June 26, 2003 02:46 AM UTC

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 06:34 AM UTC

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.

CONFIRMATION

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.

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

;