使用c#(DataGridView中的DataGridView)在Windows窗体中嵌套DataGridView [英] Nested DataGridView in Windows Forms using c# ( DataGridView within DataGridView)

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

问题描述

您好,

我想知道如何在C#中的 Windows窗体中实现嵌套的DataGridView


>非常感谢,


Hi there,

   I would like to know how to implement nested DataGridView in Windows Form in C#.


   many thanks,


推荐答案

您好jichem,

您可以在自定义中使用DataGridView编写自定义DataGridVewColumn下面是一个带有源代码的示例,它在dataGridView单元格中创建了一个颜色选择器组合框。
http ://www.codeproject.com/KB/grid/DataGridColorPicker.aspx
您可以尝试将DataGridView放入单元格中。
此外,您为什么要这样做? br>
如果有任何问题,请随时告诉我。

最好的问候,
Steven Yu

Hi jichem,

You can write a custom DataGridVewColumn with DataGridView in your custom cell.
Below is a sample with source code which create a  Color Picker ComboBox in dataGridView cells.
http://www.codeproject.com/KB/grid/DataGridColorPicker.aspx
You can have a try to put a DataGridView in the cells.
Besides, why would you have to do that?

If there is any problem, please feel free to let me know.

Best regards,
Steven Yu


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

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