1

在我的 ListView 中说 4 列(描述、单价、数量、总价)。

我想让第三列可编辑,并为 Quantity 列嵌入 NumericUpDown 控件。可能吗?当数量通过 NumericUpDown 控件更新时,总价格也会根据总价格 = 数量 * 每单位价格进行更新。

以上可以实现吗?

任何代码示例将不胜感激。


ObjectListView 对我的需求有用吗?

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

4

1 回答 1

0

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

于 2010-04-12T07:23:57.300 回答