开发者

Winforms: Embedded NumericUpDown control inside ListView

开发者 https://www.devze.com 2022-12-26 05:42 出处:网络
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.

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 po开发者_高级运维ssible? 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

0

精彩评论

暂无评论...
验证码 换一张
取 消