Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# listview - embedding controls

Can anybody help me with embedding controls in the listview. I need to add button controls as subitem of listview. thanks

like image 730
Anees Avatar asked Jan 13 '10 06:01

Anees


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

Is C language easy?

Compared to other languages—like Java, PHP, or C#—C is a relatively simple language to learn for anyone just starting to learn computer programming because of its limited number of keywords.

What is C full form?

Full form of C is “COMPILE”. One thing which was missing in C language was further added to C++ that is 'the concept of CLASSES'.


3 Answers

Well, you could be talking about the Windows Forms ListView, in which case you're pretty much SOL (sh*t outta luck.) You can custom draw on the ListView but even that has limitations in Windows Forms.

Or you could be talking about the Windows Presentation Foundation ListView. In this case it's really quite simple. You can create a DataTemplate that you associate with the ListView's columnn. Here's an example.

Or finally you could be talking about the ASP.NET ListView control which also has data templating support but the implementation is a bit different from WPF. Here's an example of that.

like image 109
Josh Avatar answered Oct 24 '22 23:10

Josh


Use ObjectListView control which is opensource. It is excellent and is derived from ListView in Window.Forms.

like image 36
particle Avatar answered Oct 24 '22 22:10

particle


Try Better ListView Express. It is free and allows custom embedded controls:

enter image description here

Better ListView has been created to fix known issues of the regular .NET ListView and solve common issues such as this one out of the box.

like image 23
Libor Avatar answered Oct 24 '22 22:10

Libor