1
Reply

Do I really need a DataGridView?

Nathan Lane

Nathan Lane

May 28 2008 11:05 AM
2.4k
I am using .NET 3.5 with Visual Studio 2008, and I am working on a desktop application. In the past I have had this question as well, and have simply opted for a ListView or just a plain multi-line text field. I want to create a table of data, but I don't want the user to be able to change the data, and I don't really want the view to look like a grid, just a blank white background please. I am writing a sort of link checker program and I want the interface to look decent, and for every page that I browse to by some link on another page, I want to show which links on the page are bad and which are good. Do I use a DataGridView or something else?

Basically I'm looking for the layout:

URL                                                          Good                                Bad
http://Somesite.com                                  64                                    13

But I want to be able to change those numbers on the fly and keep them on the same row. So obviously a ListView would probably work but I want multiple rows that have aligned columns.

Does anybody know how to do this effectively using Windows Forms but without too much overhead? The DataGridView seems to be what I want, but it has way too many things that I need to configure before it really becomes very usable to me I think.

What do you suggest?

Thanks.

Nathan

Answers (1)