I was wondering if there is a way (any components/controls) that allow me to draw a simple Microsoft Word style table in my application window. Something like this:
Any ideas?
I was wondering if there is a way (any components/controls) that allow me to draw a simple Microsoft Word style table in my application window. Something like this:
Any ideas?
I would recommend starting with WPF Toolkit DataGrid control.
Here is an ok tutorial on how to use it: http://www.switchonthecode.com/tutorials/using-the-wpf-toolkit-datagrid
It depends on how you want to use it. Either use one of the
ItemsControl
(likeDataGrid
,ListView
etc), do it directly with aGrid
panel (as recommended by the other answers) or use aFlowDocument
FlowDocument
allows you to specify Tables, Rows and Columns. You can also select several cells at once for Copy/Paste etc.This page is full of usefull examples about this: FlowDocument with Table