简体   繁体   中英

C# custom Control Group as ListView Row

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, ie 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?

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

Do you wish to get such effect:

在此处输入图片说明

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM