如何将值从一个表单传递到另一个表单datagridcell [英] How to pass values from one form to another form datagridcell

查看:74
本文介绍了如何将值从一个表单传递到另一个表单datagridcell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai朋友,



我的项目中有一个问题,

请有人解决这个问题。我想使用c #windows应用程序将值从一个表格datagrid传递到另一个表格datagrid组合框。

ex。:

Datagrid1:

S .NO项目名称数量

1 100 * 200 mm 100

2 200 * 300 mm 100



Datagrid2 :



商品名称数量

100 * 200 mm 100

200 * 300 mm 100





在这个例子之上。 Datagrid1有3列,Datagrid2有2列,在我的项目中我需要将这个datagrid1值(Item name和Qty)传递给datagrid2。

在这个datagrid2中,项目名称列是组合框单元格,并且在该datagrid1项目名称列中也是组合单元格。我怎么能这样做?你清楚这个问题吗?请给我任何可能的建议来解决这个问题。



这个组合框列是传递值的问题。所以请给我正确的查询来解决这个问题。



提前谢谢。

Hai friends,

I have one issue in my project,
Please anybody solve this problem. I want to pass values from one form datagrid to another form datagrid combobox cell using c# windows application.
ex.:
Datagrid1:
S.NO Item name Qty
1 100*200 mm 100
2 200*300 mm 100

Datagrid2:

Item name Qty
100*200 mm 100
200*300 mm 100


Above this example. Datagrid1 having 3columns and in Datagrid2 having 2columns , In my project i need to pass this datagrid1 values(Item name and Qty ) to datagrid2.
In this datagrid2 Item name column is combobox cell and also in that datagrid1 Itemname column also comboboxcell. How can I do this??Have you clear about this question?? Please give me any possible suggesstion to solve this issue.

This combobox column is the problem to pass the value. So kindly send me the correct query to solve this.

Thanks in advance.

推荐答案

为此你创建了一个类,它将存储有关第一页的信息,然后该类将在第二页中调用,这对你有帮助。
for that you have create one class for that it will store the information about the first page then that class will call in the second page that will helpfull to you.


这篇关于如何将值从一个表单传递到另一个表单datagridcell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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