将表单中的数据网格视图引用到其他表单中的其他数据网格视图
Referencing data grid view in form to other data grid view in other form
我想将数据网格视图中的数据复制到其他网格视图中
表单,问题是我不能,是通过定义全局变量并使其等于该数据网格视图,然后在我单击按钮或任何其他方式时让其他数据网格视图引用它吗?
这是我通过快速 Google 搜索得到的答案。
- Passing objects to Procedures
- Another great link about passing arguments ByVal
- Information about creating event's and delegates
如前所述,最好创建一个实例并将其作为参数传递。然后在你的另一个 class 里面你有任何你需要的东西。
我想将数据网格视图中的数据复制到其他网格视图中 表单,问题是我不能,是通过定义全局变量并使其等于该数据网格视图,然后在我单击按钮或任何其他方式时让其他数据网格视图引用它吗?
这是我通过快速 Google 搜索得到的答案。
- Passing objects to Procedures
- Another great link about passing arguments ByVal
- Information about creating event's and delegates
如前所述,最好创建一个实例并将其作为参数传递。然后在你的另一个 class 里面你有任何你需要的东西。