In order to format the content in the grid cells in different fonts inside a single cell element, I can suggest you two approaches:
The first one is to use the HTML-like text formatting functionality that RadGridView
supports. Thus, you can handle the CellFormatting
event and format the text according to your requirements. Ensure that the CellElement.DisableHTMLRendering
property is set to false when you are going to use HTML-like text formatting. All supported HTML tags are listed in the following help article: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/html-like-text-formatting
The second approach is to construct a custom cell element and insert a separate LightVisualElement
for example for the content you want to have a specific font and formatting. A sample approach for constrcurting custom cells is demonstrated in the following help article: https://docs.telerik.com/devtools/winforms/controls/gridview/cells/creating-custom-cells
Feel free to use this approach which suits your requirement best.
As to the question about formatting the text inside a text-box in different fonts, I would recommend you to have a look at our RadRichTextEditor
which is purposed to handle such scenarios. Additional information is available in the online documentation: https://docs.telerik.com/devtools/winforms/controls/richtexteditor/overview
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Get quickly onboarded and successful
with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.