Which windows form control is best for presenting data in a tabular fashion?

I need to present the output on the form in rows and columns. Is there a control to make that task easier? I am using visual studio 2010 and coding in C#.

Answers


You're looking for DataGridView. Which looks like so (don't worry, the colors are fully configurable (;):

And has many advances capabilities such as DataBinding and paging. Here's a tutorial to get you started.


Though you asked about WinForms, if you use WPF, in WFP 4.0 (.NET 4) there's a DataGrid that you can use. It's quite flexible.


Need Your Help

How to extend a templated c++ class in python with SWIG to allow the [] operator

python c++ swig

I have a templated c++ array class which uses the standard vector class: