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

Data grid cells formating

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

1 Reply

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon