C # listview - implementation controls

Can someone help me with nesting controls in listview. I need to add button controls as a subtype of a list. thanks

+6
c # listview winforms
source share
4 answers

Well, you could talk about Windows Forms ListView , and in this case you are almost SOL (sh * t outta luck.) You can customize to ListView, but even this has limitations in Windows Forms.

Or you can talk about the Windows Presentation Foundation ListView . In this case, it is really quite simple. You can create a DataTemplate that you associate with a ListViewn column. Here is an example .

Or finally, you could talk about the ASP.NET ListView control, which also supports data template support, but the implementation is slightly different from WPF. Here is an example of this.

+2
source share

Use ObjectListView , which is open source. It is excellent and derived from ListView in Window.Forms.

+2
source share

Try Better ListView Express . It is free and allows you to customize the built-in controls:

enter image description here

Better ListView was created to fix known issues with the regular .NET ListView and solve common problems like this out of the box.

+2
source share

If you can use another control instead of a list, try DataGridView - you can add any type of control to the cell (subitem). http://msdn.microsoft.com/en-us/library/e0ywh3cz.aspx

+1
source share

All Articles