I need to populate a list that has 3 columns.
First: Icon Image.
Second: A string.
Third: A string.
I started to wire up a DataGridView and it seem awfully large and powerful for my needs. I am not interested in displaying data in a grid similar to a spreadsheet and I do not require all the functionality that comes with this control. Is there a better alternative?
Thanks!
You could go for the ListView in View.Details view, as this is similar to the view that you see in Windows Explorer when in Details view.
Create a form and place on it an
ImageListand aListViewnamedimageList1andlistView1respectively. Then place the following code into the forms load method:The code really couldn’t hurt for some tidying up, but it calls out quite explicitly what it’s doing and should hopefully make it quite clear how to use a
ListViewfor this purpose.