我如何计算已在列表框中的数据. [英] how i calculate data that has been in list box.
本文介绍了我如何计算已在列表框中的数据.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个列表框,我通过组合框在列表框中添加数据,因此我如何计算列表框中的数据并在C#中的文本框中显示.
我的第二个问题是在C#
解决方案
中如何使用第二种形式或如何跳转到第二种形式以使用第一种形式,而不是直接将数据添加到列表框中,请考虑放置数据表 [ http://social.msdn.microsoft.com/论坛/is/csharpgeneral/thread/07d8321a-4b54-49b3-9bfe-94269affade8 [ DataTable.Compute方法 [ ^ ]
I have one list box, i add data in list box through combobox,so how i calculate that data in list box and displayed in text box in C#.
My second questions is how i use second form or how i jump to second form to first form in C#
解决方案
Instead of adding the data directly to the list box consider placing the data in a datatable[^].
You can then bind the datatatble to the listbox. See: http://social.msdn.microsoft.com/Forums/is/csharpgeneral/thread/07d8321a-4b54-49b3-9bfe-94269affade8[^].
The calculations can probably be done using DataTable.Compute Method [^]
这篇关于我如何计算已在列表框中的数据.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文