如何在gridview中将数据显示为Windows窗体中的父子 [英] how to show data in gridview as parent child in windows form

查看:64
本文介绍了如何在gridview中将数据显示为Windows窗体中的父子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个表第一个订单和第二个订单详细信息,我想显示父网格或主网格视图中的订单表数据和子网格视图中的orderdetails表数据/我希望当我点击主网格或父网格视图然后子网格视图显示顺序详细信息

i have 2 tables first one order and second one orderdetails, i want to show order table data in parent or master gridview and orderdetails table data in child gridview/ i want when i click on master or parent gridview then child gridview display orderdetails

推荐答案

您好,



有几种方法可以解决这个问题。



1.使用构造函数

2.使用对象

3.使用属性

4.使用代理





更多细节试试这个链接



在表格之间传递数据



谢谢

animesh
Hello ,

There are several approaches to solve this problem .

1. Using constructor
2. Using objects
3. Using properties
4. Using delegates


for more details try this link

Passing data between forms

thanks
animesh


这篇关于如何在gridview中将数据显示为Windows窗体中的父子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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