如何在C#中创建自定义DataGridView? [英] How can I create a custom DataGridView in C#?

查看:290
本文介绍了如何在C#中创建自定义DataGridView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,



我希望我的DataGridView看起来如下所示。很抱歉质量不好,因为这是我必须捕获gridview截图并删除敏感信息后从屏幕上拍摄的照片。图像中的DataGridView是用Java语言编写的。有没有办法在C#中做到这一点?



Dropbox - 4.jpg [ ^ ]



带有渐变的标题是当鼠标悬停在该列上时。

Good day,

I want my DataGridView to look like the following. Sorry for the bad quality as it was a picture taken from screen after I had to capture a screenshot of a gridview and remove sensitive information. This DataGridView in the image is programmed in the Java language. Is there a way to do this in C#?

Dropbox - 4.jpg[^]

The header with the gradient is when mouse is hovering over that column.

推荐答案

尝试使用列样式,或者选择其他一些网格控件。



参考 - c# - DataGridView有哪些替代方案? - 堆栈溢出 [ ^ ]
Either try to play with the column styling, else choose some other grid controls.

Refer - c# - What are the alternatives to DataGridView? - Stack Overflow[^]

这篇关于如何在C#中创建自定义DataGridView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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