始终在DataGridView中显示网格线 [英] Alwaysdisplay grid lines in DataGridView

查看:96
本文介绍了始终在DataGridView中显示网格线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net的DataGrideView控件中显示网格线
我想创建自己的样式,即在样式中添加列

How can display the grid lines in DataGrideView control in asp.net
I want create our own style ie add colum in our style

推荐答案


您可以使用以下内联样式:
Hi,
You can use inline style like:
<asp:gridview bordercolor="Gray" borderstyle="Solid" forecolor="Transparent" gridlines="Horizontal" xmlns:asp="#unknown" /> 



自定义RowStyle类如下:



Custom RowStyle class is as follows:

<rowstyle cssclass="gridViewRow" />





.gridViewRow{
border-bottom-color: gray;
background-color: white;
border-bottom-style: solid;
font-size: 11pt;
color: black;
font-family: Tahoma;
}


http://atashbahar.com/post/GridView-makeover-using-CSS.aspx [ ^ ]

^ ]了解更多信息.
http://atashbahar.com/post/GridView-makeover-using-CSS.aspx[^]

Google[^] for more.


这篇关于始终在DataGridView中显示网格线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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