在数据网格上以不同的形式添加/更改信息? [英] Adding/Changing information on a datagrid, from a different form?

查看:97
本文介绍了在数据网格上以不同的形式添加/更改信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在尝试执行以下操作.
当用户单击form2上的按钮时,form2中文本框的文本应传输到form1中datagrid中的行/列.
谢谢,您知道如何将数据添加到数据网格,然后将数据从Form2传递到Form1,更好地利用了委托,如下所示. />
将委托用于表单可重用性-依赖注入原理 [ ^ ]


hello,
i am trying to do the following.
when the user clicks a button on form2, the text of the textbox in form2 should be transfered to row/colomn in the datagrid in form1.
thanks

解决方案

Assuming you know how to add the data to the data grid, then pass the data from form2 to form1 better make use of delegate as shown here.

Use of delegates for form reusability- Dependency injection principle[^]


这篇关于在数据网格上以不同的形式添加/更改信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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