如何在vb.Net中显示项目并手动添加数量 [英] How to display Items and manually add quantity in vb.Net

查看:77
本文介绍了如何在vb.Net中显示项目并手动添加数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

我的名字是Sarfaraz,我已经开始在VB.Net和Access中开发一个项目。完成我的主表单后,我被困在我的下一个表单上因为:

我有一个组合框,从访问数据库表填充并从组合框中选择一个项目,列表框被填充不同选项。

我想从列表框中选择一些选项,它们应该显示为一个表格,对应每个选定的项目,我应该能够手动添加所需的数量,因此总价格应该是显示,最后应该打印出来。

它就像一个POS,对你所拥有的每件商品的数量,费率和总价格显示



我实际上卡住了用于此Listview或gridview的控件。请帮帮我。

谢谢

Dear all
My name is Sarfaraz and I have started developing a project in VB.Net and Access. After completing my main form i am stuck on my next form because:
I have a combo box which is populated from access database table and selecting an item from the combo box, the list box gets filled with different options.
I want to select some options from the list box and they should be displayed like a table where against each selected item i should be able to add manually the quantity needed and accordingly the total price should be displayed and finally should print that.
It is something like a POS where against each item you have quantity, rate and total price displayed

I am actually stuck what control to use for this Listview or gridview. Please help me in that.
Thank you

推荐答案





Gridview是更好的选择。



将第四列作为第1项,第2项,第3项和第4项



选择列表项后,您可以将所选项目绑定到gridview

,其中item_name和其他列为空白。



根据选择行将生成然后您可以手动输入

数量,费率和总数。
Hi,

Gridview is better option.

Take four column as 1st item_name,2nd quantity,3rd rate and 4th total

after selected list item you can bind the selected item to gridview
with item_name and other column as blank.

according to selection row will generated then you can manually entry
quantity,rate and total.


这篇关于如何在vb.Net中显示项目并手动添加数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆