简体   繁体   中英

Winforms: Embedded NumericUpDown control inside ListView

say in my ListView say with 4 columns (Description, Price Per Unit, Quantity, Total Price).

I would like to make the third column editable, and embedded NumericUpDown control for the Quantity column. Is it possible? And when the Quantity is updated via the NumericUpDown control, the Total Price is also being updated based on Total Price = Quantity * Price Per Unit.

is the above achievable?

any code samples would be greatly appreciated.


would ObjectListView be useful for my needs?

http://objectlistview.sourceforge.net/cs/index.html

I haven't tried but I can't think of any reason why it wouldn't be possible.

This knowledge base article (KB320344) shows how to add a combobox and you should be able to adapt the code for most other kinds of controls:
http://support.microsoft.com/kb/320344

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