Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to 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 Big Grin | :-D
 
Thank you,
VitekST
 
PS: No DataGridView please, I need to make it exactly same as MS Word Grid.
 
[edit]clickable link[/edit]
Posted 25-Nov-12 7:53am
VitekST901
Edited 26-Nov-12 2:28am
v4
Comments
Sergey Alexandrovich Kryukov at 25-Nov-12 15:04pm
   
MS Word is not a spreadsheet. What you show is a table. --SA
Richard MacCutchan at 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 at 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

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

Solution 1

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

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 838
1 OriginalGriff 461
2 Tadit Dash 355
3 sanket saxena 329
4 Peter Leow 228
0 Sergey Alexandrovich Kryukov 12,109
1 OriginalGriff 7,326
2 Peter Leow 5,003
3 Abhinav S 4,003
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web01 | 2.8.140421.2 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid