Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 WinForm
how can i simulate the function of WORD TABLE,that can split and meger cells arbitrarily,any code can help? thank you all
Posted 10-Dec-12 21:58pm
Comments
Richard MacCutchan at 11-Dec-12 4:14am
   
Probably by writing a lot of code.
 
You could also look at the DataGridView class to see if that has any features that you could adapt for your needs.
Sergey Alexandrovich Kryukov at 11-Dec-12 13:10pm
   
I know one "secret weapon", of a very good quality -- please see my answer.
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

One wonderful way of doing it is provided in this CodeProject article: A Professional HTML Renderer You Will Use[^].
 
The control is based on RichTextBox and allows you to use HTML as a data source. And, with HTML you can simulate almost everything.
 
—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

thanks Sergey,bu is not what i want,it like this Picture,in that, i can meger and split any cell,and i can select one cell to update its property, like font、color and so on
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

thanks for Lina99, i don't want to buy a component at the moment, desire a better solution, The most important thing is split a cell
  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 786
1 OriginalGriff 345
2 CPallini 160
3 PIEBALDconsult 150
4 Magic Wonder 131
0 OriginalGriff 5,705
1 Sergey Alexandrovich Kryukov 4,763
2 CPallini 4,570
3 George Jonsson 3,142
4 Gihan Liyanage 2,450


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 12 Dec 2012
Copyright © CodeProject, 1999-2014
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