Windows窗体(C#)中的DataGrid内的DataGrid [英] DataGrid inside a DataGrid in Windows Forms (C#)

查看:69
本文介绍了Windows窗体(C#)中的DataGrid内的DataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在dataGrid内部使用DataGrid,可以在其中显示父网格中的父行,也可以在内部datagrid中显示子行.

是否可以在DataGrid中使用DataGrid?


谢谢,

Hi,

I want to use DataGrid inside a dataGrid in which I can show the parent rows in the parent grid and I can show child rows in the inside datagrid.

Is is possible to have DataGrid inside a DataGrid?


Thanks,

推荐答案

是.

(我只想回答是",但是此应用程序发出一条消息内容太短".尽管这样的设计对我来说还是个问题,但我还是回答了这个问题.任何控件都可以位于数据网格的单元格中,那么为什么不使用另一个数据网格呢?这是什么问题呢?)

—SA
Yes.

(I wanted to answer just "yes", but this application issues a message "The content it too short". I answered the question, even though such design is questionable to me. Any control can be in a cell of a data grid, so why not another data grid? What is the problem here?)

—SA


这篇关于Windows窗体(C#)中的DataGrid内的DataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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