Datagridview选中的行传递给c#中的另一个form2文本框 [英] Datagridview selected row passing to another form2 textboxes in c#
本文介绍了Datagridview选中的行传递给c#中的另一个form2文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。我需要你的帮助。我有两个表格。 Form1中有一个tetbox,Form2中有5个单位gridview。我的问题是:当我选择单元格双击datagridview,如何传递值Form1文本框
我尝试过:
我如何从gridview检索数据到其他形式的文本框?
解决方案
这是一个非常受欢迎的问题初学者经常提出形式合作,所以我写了一篇文章来介绍这个主题(以及WPF窗口):一次回答的许多问题 - Windows窗体或WPF Windows之间的协作 [ ^ ]。
-SA
Hi Everyone. I need you help. I have a two form. there is a tetboxes in Form1 and there is 5 units gridview in Form2. My question is: when i selected cell Double click in datagridview, How to Pass Values Form1 textboxes
What I have tried:
How i retrieve data from gridview to anther form textboxes?
解决方案
This is reduced to a very popular question on form collaboration often asked by the beginners, so I wrote an article to cover the topic (as well as WPF windows): Many Questions Answered at Once — Collaboration between Windows Forms or WPF Windows[^].
—SA
这篇关于Datagridview选中的行传递给c#中的另一个form2文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文