DataGridView头堆栈 - VB.NET [英] DataGridView Header Stacked - VB.NET

查看:149
本文介绍了DataGridView头堆栈 - VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将列标题叠加在一起,例如合并标题单元格。与此图片中相同。





请参阅此链接。它是用C#完成的。它完全符合我的需求。
http://www.codeproject.com/Articles/ 474418 / DataGridViewplus-e2-80-93plusStackedplusHeader



但问题是,我正在使用vbproj,它不能包含这个C#。
我使用了一些代码转换器,并在提升事件等方面出现了一些错误。

有没有什么办法可以在VB.NET中获得这个



或者是否有任何其他方式可以使这个堆栈标题?

解决方案

并不直接回答你关于转换的问题,但最简单的解决方案是将代码保存在C#中作为一个单独的项目,然后将其作为项目引用添加到VB.NET项目中。


I need the columns Headers to be Stacked, like Header Cells Merged. The Same as in this image.

Please Refer to this link. It is done with C#. It does exactly what I need. http://www.codeproject.com/Articles/474418/DataGridViewplus-e2-80-93plusStackedplusHeader

But the Problem is, Im working on vbproj and It cant include this C#. I used some code converters and ended with some errors in raising events, etc.

Is there any way to get this in VB.NET

Or Is there any other way to make this stacked Headers??

解决方案

This doesn't directly answer your question about conversion, but the easiest solution is to keep the code in C# as a separate project, then add it as a project reference in your VB.NET project.

这篇关于DataGridView头堆栈 - VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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