Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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 10:25am
v2
Comments
Clifford Nelson 22-Mar-12 16:22pm    
Your question is extremely unclear.

1 solution

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.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900