简体   繁体   English

使用C#在Winform中合并DataGridView中的单元格?

[英]Merge cell in datagridview in winform using c#?

I have to create a scheduler for my projects. 我必须为我的项目创建一个调度程序。

For different time slots I have to show related information so there is a need to merge cells of datagridview. 对于不同的时隙,我必须显示相关信息,因此需要合并datagridview的单元格。

Is there any third party tool avalable for this or I have to paint each required set of cells. 是否有任何适用于此的第三方工具,否则我必须绘制每个所需的单元格集合。

The only way to merge cells with the datagridview control is to use custom painting. 将单元格与datagridview控件合并的唯一方法是使用自定义绘制。

I'm not aware of any third party control libraries that have this functionality, but a good place to start looking would be the Telerik controls - their WinForms Grid Control looks like it supports cell merging, though I haven't used it. 我不知道有任何具有此功能的第三方控件库,但是开始查找的一个好地方是Telerik控件-它们的WinForms Grid Control看起来像它支持单元格合并,尽管我没有使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM