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


Thread ID:





67974 Sep 5,2007 05:03 PM UTC Sep 7,2007 05:59 PM UTC WinForms 5
Tags: GridControl
Sudharsini Ravikumar
Asked On September 5, 2007 05:03 PM UTC

Could someone please email me the latest and greatest InPlaceRichTextCell VB version?


Ajish [Syncfusion]
Replied On September 5, 2007 10:11 PM UTC

Hi Sudha ,

The RichText cell control in the library allows you to edit richtext via a dropdown panel. It does not allow you to edit the text in-place.

You can derive the GridRichTextBoxCellModel and GridRichTextBoxCellRenderer classes to use an embedded RichTextBox in the cell to do the active editing. Attached are samples that do this.

To use this control, you would include the InPlaceRichTextCell.vb file in your project, and then register the new CellControl using grid.CellModels.Add. The attached samples show how to use this method for both a GridControl or a GridDataBoundGrid.


Kindly take a look and let me know if you need any further assistance.


Sudharsini Ravikumar
Replied On September 5, 2007 11:38 PM UTC


I used the sample sent by you and dropped a grid control to my form. Added the Richtext cell model. Got some sample RTF data (hard coded as string in style.cellValue. I have about 200 something rows in the grid where about 10 are picture box cells.

It is slow to paint the view (may b I could Begin update and end update to fix this). But anyways the probelm is I don't see RichText or for that matter any text in the cells. I don't know what mistake I'm doing. Could you please help?

I have the following code..
'Add the Richtext cell model
Me.GridControl1.CellModels.Add("InPlaceRTB", New InPlaceRichTextCellModel(Me.GridControl1.Model))

'Remove all rows
Me.GridControl1.Rows.RemoveRange(0, Me.GridControl1.Model.RowCount())

'For every record add a row and set its properties
For I As Integer = 0 To dt.Rows.Count - 1
Me.GridControl1.Rows.InsertRange(I, 1)
style = Me.GridControl1(I, 1)
lngObjTypeID = dt.Rows(I)("ObjTypeID")
If lngObjTypeID = "TEXT"
style.CellType = "InPlaceRTB"
style.CellValue = dt.Rows(I)("DisplayText")
style.AllowEnter = True
End If

Thanks Sudha

Ajish [Syncfusion]
Replied On September 6, 2007 10:37 PM UTC

Hi Sudha,

There doesn't seem to be any problem with the code provided. It should work fine. In fact it is the same code that is used in the sample provided in the previous update. Could please provide us with a test sample this would help us to investigate further on this issue.


Sudharsini Ravikumar
Replied On September 6, 2007 11:34 PM UTC

I have many probelms with the grid.

1. Resizing -- My grid is docked to the parent form. So when I resize the form the grid gets resized. Then I have a handler to QueryColResize to resize the only column in my grid to fill the entire width of the grid. When this is done I expected the gird to resize the heights so that the row heights fit the content. It doesn't.

2. When I paste using the Paste Context menu in RTB it throws an exception.

Could you please help me with these 2 issues?

The attached sample has both the problems.



Ajish [Syncfusion]
Replied On September 7, 2007 05:59 PM UTC

Hi Sudha,

Thank you for the details.

We are able to note a similar issue reported in Direct Trac Incident # 37117 and it has been updated. Please follow the details of the issue in it.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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