C # .NET: displaying a simple list using a 32x32 icon column and a 2-line text column

I am using .NET 2.0 with standard controls. I want to display a simple list with the following formatting:

alt text
(source: telenet.be )

  • Column 1 contains a 32x32 pixel icon
  • The second column contains 2 lines of text:
    • 1 Text line in bold
    • 1 Not a bold line
  • Lines are separated by a dashed line (3 pixels, 1 pixel, height 1 pixel)

What is the best way to do this?

.... change: .....

  • We tried this with ListView, but you cannot add 2 rows to a column with a different formatting ... same with datagridview ...
  • ObjectListView will do what is needed, but we cannot use it because it has a GPL license.
+4
source share
2 answers

You may be able to use this: It is much easier to use a ListView

If not, you can create your own: How to create a window with an image of the owner

+2
source

What about Listview in Tile mode: http://msdn.microsoft.com/en-us/library/s8z85th0.aspx

For more control, you need the owner to draw a listview (or list)

+2
source

Source: https://habr.com/ru/post/1310238/


All Articles