BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private RichTextBox rtb = new RichTextBox(); private void gridDataBoundGrid1_DrawCellDisplayText(object sender, GridDrawCellDisplayTextEventArgs e) { if(e.Style.CellIdentity.ColIndex == 2) //use for column 2 { rtb.Clear(); rtb.SelectedText = e.DisplayText; string rtf = rtb.Rtf; Syncfusion.Drawing.RichTextPaint.DrawRichText(e.Graphics, rtb, rtf, this.gridDataBoundGrid1.PrintingMode, this.gridDataBoundGrid1.GridBounds, e.TextRectangle, this.gridDataBoundGrid1.GridBounds, e.Style.BackColor, e.Style.WrapText, 100, false); e.Cancel = true; } }Depending upon the version of the grid you are using, the DrawRichText method shown above may give a syntax error. If so, try removing the last argument.
>private RichTextBox rtb = new RichTextBox(); >private void gridDataBoundGrid1_DrawCellDisplayText(object sender, GridDrawCellDisplayTextEventArgs e) >{ > if(e.Style.CellIdentity.ColIndex == 2) //use for column 2 > { > rtb.Clear(); > rtb.SelectedText = e.DisplayText; > string rtf = rtb.Rtf; > Syncfusion.Drawing.RichTextPaint.DrawRichText(e.Graphics, rtb, rtf, this.gridDataBoundGrid1.PrintingMode, this.gridDataBoundGrid1.GridBounds, e.TextRectangle, >this.gridDataBoundGrid1.GridBounds, e.Style.BackColor, e.Style.WrapText, 100, false); > e.Cancel = true; > } >} >> >Depending upon the version of the grid you are using, the DrawRichText method shown above may give a syntax error. If so, try removing the last argument.