Windows Develop Bookmark and Share   
 index > Windows Forms General > How to insert Table in RichtextBox
 

How to insert Table in RichtextBox


Hello to all;
I am using VS2005 in WindowXP and using C# programming Language,
My question is :-
How can we Insert a table and give a print to the content of Table?

That means i have a richtextbox control in form and two button.
One button puts table in RichTextBox asking no of rows and columns and
Other button Print the Contents of RichtextBox.
Is there any other language in which i can do the same if it is not possible in C#.

Plz help me,
How can i Do this,
Your Valuable suggestion is always helpful for me.

Thanks in Advance.

Regards,
Bhushan


Cool_Bhushan  Tuesday, April 08, 2008 1:11 PM

You can not data bind a table to a text field. However you can use data binding to bind a table to a grid. You could also choose to bind a table field to a text field.

inetnerd  Friday, April 11, 2008 2:42 PM
Moving this thread from VC++ forum to C# for better support!

Ji.Zhou  Thursday, April 10, 2008 9:06 AM

You can not bid a multiple column/row table to a rich text box. If you want to display the table in a text box you will need to format a string that looks the way you want in code.

inetnerd  Thursday, April 10, 2008 4:07 PM
Hello Sir,
Thank you very much for ur reply.
Agin i just want to know is there any tool or else are there to accomplish the same task.
Because I have an urgent need of this.

Thanks and Regards,
Bhushan
Cool_Bhushan  Friday, April 11, 2008 5:15 AM

You can not data bind a table to a text field. However you can use data binding to bind a table to a grid. You could also choose to bind a table field to a text field.

inetnerd  Friday, April 11, 2008 2:42 PM

You can use google to search for other answers

Custom Search

More Threads

• Formatting Text in a Textbox Control
• insert Subitem to Items from ContextMenuStrip in RunTime and Access to Subitems
• Mdi child form actiavtes in two clicks
• editing datasets using navigator save button
• chm help file specific page
• Changing MDI Child form icon
• foreach loop for a datarow
• Form Interface Question
• about filling clark
• connaitre le type de champ selectionner dans un activeX WebBrowser