更新时间:2023-02-20 15:51:35
请检查下面来自CodeProject的链接
如何在Windows窗体中托管颜色选择器组合框DataGridView单元格 [
Please check the link below from CodeProject
How to Host a Color Picker Combobox in Windows Forms DataGridView Cells[^]
Hope This will help you
好吧,如果您正在谈论扩大网格行,那么网络上就会有很多资源.
看看这些文章,例如:
创建一个像树控件一样可伸缩的数据网格 [ ^ ]
自定义DataGridView以支持扩展/折叠(ala TreeGridView) [ ^ ]
或者,您可以选择在DataGridViewCell中托管另一个控件.
本文介绍了如何实现此目的:如何:通过扩展Windows Forms DataGridView控件中的单元格和列,自定义单元格和列行为和外观 [ ^ ]
希望这会有所帮助:)
Well, if you are talking about expanding gridrows then there is plenty of resources on the web.
Look at these articles for example:
Creating a DataGrid that expands and collapses like a tree control[^]
Customizing the DataGridView to support expanding/collapsing (ala TreeGridView)[^]
Alternatively you could choose to host another control in a DataGridViewCell.
This article explains how to achieve this: How to: Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behaviour and Appearance[^]
Hope this helps :)