Skip to content

Commit 94fe7f2

Browse files
authored
Merge pull request #4 from Rabina4363sf/patch-1
KB-12353-Update README.md
2 parents 2b52a6b + d1b134a commit 94fe7f2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# How to display rich text in WinForms DataGrid (SfDataGrid)?
2-
This example explains how to display rich text in [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid).
1+
# How to display rich text in WinForms DataGrid?
2+
This example explains how to display rich text in WinForms DataGrid.
33

44
[WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid) doesn't have direct support to display RichText’s in the [GridTextColumn](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.GridTextColumn.html). However, it is possible to achieve this by overriding the [OnRender](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.Renderers.GridTextBoxCellRenderer.html#Syncfusion_WinForms_DataGrid_Renderers_GridTextBoxCellRenderer_OnRender_System_Drawing_Graphics_System_Drawing_Rectangle_System_String_Syncfusion_WinForms_DataGrid_Styles_CellStyleInfo_Syncfusion_WinForms_DataGrid_DataColumnBase_Syncfusion_WinForms_GridCommon_ScrollAxis_RowColumnIndex_) method in [GridTextBoxCellRenderer](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.Renderers.GridTextBoxCellRenderer.html).
55

6+
### C#
7+
68
```c#
79
//customize the TextBoxCellRenderer
810
this.sfDataGrid1.CellRenderers.Remove("TextBox");
@@ -24,6 +26,8 @@ public class GridRichTextCellRenderer : GridTextBoxCellRenderer
2426

2527
```
2628

29+
### VB
30+
2731
```VB
2832
'customize the TextBoxCellRenderer
2933
Me.sfDataGrid1.CellRenderers.Remove("TextBox")
@@ -46,7 +50,5 @@ End Class
4650

4751
![RichText_Image](RichText_Image.jpg)
4852

49-
You can download the example from [GitHub](https://github.com/SyncfusionExamples/How-to-display-rich-text-in-WinForms-DataGrid-SfDataGrid-)
50-
5153
## Requirements to run the demo
52-
Visual Studio 2015 and above versions
54+
Visual Studio 2015 and above versions

0 commit comments

Comments
 (0)