Click here to Skip to main content
15,884,739 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,
I am making Rich text editor in C#, and i need one thing to implement...

It's MS Word like grid or table.

"How to make MS Word like grid in RichTextBox?"

So, I need to write function, what creates MS Word like resizeable and moveable spreadsheet with number of rows and columns in integer as input.

And I need to save this contetnt as RTF with text, it's RTF text editor.

If you don't know what I am asking how to make, click on this link: http://i.imgur.com/xGxfb.png[^]

PS: In image, sorry for unrecognizable labels, It's in Czech language :D

Thank you,
VitekST

PS: No DataGridView please, I need to make it exactly same as MS Word Grid.

[edit]clickable link[/edit]
Posted
Updated 26-Nov-12 2:28am
v4
Comments
Sergey Alexandrovich Kryukov 25-Nov-12 15:04pm    
MS Word is not a spreadsheet. What you show is a table.
--SA
Richard MacCutchan 26-Nov-12 5:00am    
OK, you have edited your question, but you have not added any useful information. Did you look at the link I provided for you?
VitekST 26-Nov-12 8:13am    
Yes, I do. But, how to save this into normal RTF file? (With text)

This solution isn't working, I have added into this control some rows, but data rows isn't showing.

But thank you for this solution,
VitekST

1 solution

That's not a spreadsheet, it's a table or grid. Take a look at the DataGridView[^] class.
 
Share this answer
 

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