MS Excel 2013 datagridview看 [英] MS Excel 2013 datagridview look

查看:90
本文介绍了MS Excel 2013 datagridview看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



有没有办法在Visual Studio中实现ms excel 2013看起来像datagridview?我感兴趣,如果有一种方法可以使用ms office库在我的项目中使用这样的datagridview。因为我正在建设地铁看起来像winforms appliacation,我无法用我的datagridview实现相同的效果,如细胞选择效果和其他很酷的效果

Hello

Is there a way to achieve ms excel 2013 look like datagridview in visual studio ? Im interested if there is a way to use ms office libraries to use such a datagridview in my project. Because i'm building metro look like winforms appliacation and i could not achieve same effects with my datagridview, like cell sellection effect and other cool effects

推荐答案





没有内置控件。要实现Excel样式,您必须覆盖该方法:OnCellPainting。在此方法中,您可以设置/写入列和行标题以及datagridview单元格的样式。

否则您将不得不使用外部第三方工具。



问候,



Daniel
Hi,

There is no built-in control. To achieve the Excel style you will have to override the method: OnCellPainting. In this method you can set/write the style for column and row header as well as for the datagridview cells.
Otherwise you will have to use external third-party tools.

Regards,

Daniel


这篇关于MS Excel 2013 datagridview看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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