Click here to Skip to main content
12,884,771 members (31,636 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0 Word Microsoft , +
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:[^]

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

Thank you,

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
Updated 26-Nov-12 2:28am
Sergey Alexandrovich Kryukov 25-Nov-12 15:04pm
MS Word is not a spreadsheet. What you show is a table.
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,

1 solution

Rate this: bad
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.

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100