如何将文本框值的值从一种形式传递到另一种数据网格 [英] how to pass value from textbox value from one form to another datagrid
本文介绍了如何将文本框值的值从一种形式传递到另一种数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在form1中有一个数据网格,只有几行.当我单击datagrid form2的单元格时应打开. form2包含一个文本框和save_button.我在文本框中键入的内容应保存在form1中datagrid的相应单元格中.请指导我...
i have a datagrid in form1 with few rows. when i click a cell of a datagrid form2 should open. form2 contains a textbox and save_button. what i type in the textbox should save in the respective cell of the datagrid in form1. please guide me...
推荐答案
请按照以下步骤操作:
1.创建一个单元格单击事件.
2.创建一个form2对象并调用Show()方法.
3.为form2的Close()事件创建一个事件处理程序. 4.在此处阅读手册 [
Follow these steps:
1. Create a Cell Click Event.
2. Create a form2 object and call to Show() method.
3. Create an event handler for Close() event for form2.
4. Read the manual here[^].
Hope it helps.
这篇关于如何将文本框值的值从一种形式传递到另一种数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文