tags:

views:

107

answers:

3

I need some GUI that can hold 3 columns of of text (that i would like to be aligned). I'll add and delete rows. What control can i use and how do i add in the 3 items?

+1  A: 

Use the DataGrid control if you are using WindowsForms. It allows for complete control over the display of headers and you can manually add/remove rows at will.

Phil Wright
A: 

If you want to use WinForms, you could use the TableLayoutPanel to provide this functionality. The cell contents could be a Label or a read-only TextBox. You could also use a DataGrid. Of course, there is always the ListView as well.

In WPF, you have many more options on how to achieve this, but you could use a Grid (similar to TableLayoutPanel in concept) or a DataGrid.

Jeff Yates
A: 

A ListView control always works if you're looking for something simple and effective.

Ron Warholic