在vb.net 2008中不使用DataTable和Datagridview创建表 [英] Create Table without using DataTable and Datagridview in vb.net 2008

查看:123
本文介绍了在vb.net 2008中不使用DataTable和Datagridview创建表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我想创建发票表。列将是项目,品牌,规格,这些是组合框,数量,价格和总价格在文本框中。我必须像datagridview一样在表中创建它。请帮我这样做。







先谢谢

Hi,


I want to create table for invoice. Columns will be Item, Brand, Specification these are in combobox and Quantity, Price and Total Price are in Textbox. I have to create this in table like datagridview. Please help me to do this.



Thanks in Advance

推荐答案

如果您在提交发票或退出申请后无需记住数据,那么您可以使用二维数组...
If You need not to Remember Data After Submitting Invoice or After Exiting Application, then You may Use 2 Dimensional Array...


您好,


我可以理解你的问题。你想在你的桌子上点击[+]按钮添加一个新行,看看控制组(我的意思是组合框和文本框)。





有几种方法可以做到这一点。

1.最常见的方法是使用Datagridview。你可以在第一列中添加组合框,在另一列中添加文本框。

2.你可以点击[+]按钮在TableLayout控件中添加动态控件。



3.您可以设计自己的coustom控件,它具有这些控件,并在点击[+]时在您的表单上添加此控件。







RKS
Hi,

Might i understand your problem. You want to add a new row on [+] button click in your table looking set of control(I mean Combo box and Text boxes).


There are several approach of doing this.
1. The most common way is use Datagridview. you can add Combo box in first column and text box in another columns.
2. You can add dynamic controls in TableLayout control on click of [+] button.

3. You can design you own coustom control which has these set of control and add this control on you form on click of [+].



RKS


这篇关于在vb.net 2008中不使用DataTable和Datagridview创建表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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