0

I'm trying to create a custom ListView WinForms control so that each row has a title, subtitle, image icon, and action icon. There are many answers on here that describe how to override the OnDrawItem method, but what I want is behavior too, i.e. be able to click on an icon in a row and have an event handler.

Is there any way to put a control group as a row element?

Community
  • 1
  • 1
Jason
  • 13,563
  • 15
  • 74
  • 125

1 Answers1

0

I put it into answer as I have no way to add image in a comment.

Do you wish to get such effect:

enter image description here

If yes, change ListView.View to Tile. You don't have to use owner draw if this met your requirement.

David
  • 15,894
  • 22
  • 55
  • 66
  • This is a good start, but what about behavior? I'm looking for something that allows me to fire events on click of the icon or on mouse over the title, etc. – Jason Apr 04 '13 at 13:23