none
How to insert Table in RichtextBox

    Question


  • 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


    Tuesday, April 08, 2008 1:11 PM

Answers

  • 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.

    Friday, April 11, 2008 2:42 PM

All replies

  • Moving this thread from VC++ forum to C# for better support!

     

    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.

    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
    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.

    Friday, April 11, 2008 2:42 PM