Click here to Skip to main content
14,383,651 members
Rate this:
Please Sign up or sign in to vote.
See more:
Sir,
I have made an application, in which I have taken rich-text Box in which multiple text is written ,an this record is inserted into database.This record is show in datagridview.
I have show the whole record means all the text in rich-text into the datagridview. I have cannot show the not only show the single line in datagridview ,I have show the rich-text box contain as I type the multiple statement.I have also seen datagridview .


Please Give me the answer of this question.

I beleive that the question is how to put a multi-line RichTextBox into one of the cells of a DataGridView.
Posted
Updated 22-Mar-12 11:25am
v2
Comments
Clifford Nelson 22-Mar-12 16:22pm
   
Your question is extremely unclear.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

As I can understand from your question, you want to insert the rich text in cells of a Column and want to show multiple lines of the rich text in each row of the DataGridView.

There is no built support to show rich text in DataGridView. However, a custom DataGridViewColumn and a custom DataGridViewCell can be created to show rich text in DataGridView. A Code Project article for this particular purpose is written here
RichTextBox Cell in a DataGridView[^]
I think this may be helpful to you.
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100