css 设置好TD 同时存在treeview与gridview的时候
来源:互联网 发布:淘宝网茵曼 编辑:程序博客网 时间:2024/05/29 02:54
让treeview不显示td网格线 gridview显示网格线
HTML
<style type="text/css">
TD
{
font-size: 9pt;
color: #000000;
font-family: 宋体;
border-right: #6C9FDB 0px solid;
border-top: #6C9FDB 0px solid;
border-left: #6C9FDB 0px solid;
border-bottom: #6C9FDB 0px solid;
border-collapse: collapse;
}
</style>
.cs
protected void myDataGrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[0].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[1].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[2].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[3].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[4].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[5].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[6].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[7].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[8].Attributes.Add("style", "border:1px #6C9FDB");
e.Row.Cells[9].Attributes.Add("style", "border:1px #6C9FDB");
}
}
- css 设置好TD 同时存在treeview与gridview的时候
- Android GridView 方格中图标与文字如何同时存在
- try与finally同时存在的问题
- 从TextBox添加到DataTable填充到GridView中显示之【此过程同时检测某个字段时候已经存在】
- CSS中设置表格TD宽度的问题
- CSS设置table 中td的内容自动换行
- ScrollView与ListView和gridview的时候
- HTML+CSS基础 内联样式表与嵌入样式表设置不同时,听内联的
- td的宽度设置
- CSS实现table td中文字的省略与显示
- CSS实现table td中文字的省略与显示
- HTML+CSS基础 table中的th与td的区别
- 验证控件与JS验证同时存在的问题
- JBoss5中Local与Remote不能同时存在的问题
- CSS设置表格TD TH边框问题
- andorid GridView与scrollView同时使用出现的问题
- andorid GridView与scrollView同时使用出现的问题
- reset.css在进行页面开发的时候,我们会对css进行一些初始化的设置与重设
- 审批没过
- Documenting Software Architectures
- 【转载】A*寻路初探
- Software Architecture In Practice 2nd
- RDP可靠数据协议
- css 设置好TD 同时存在treeview与gridview的时候
- [分享]精心收集的3款JavaScript实现的日期时间选择控件
- ORACLE常用SQL优化hint语句
- 微软面试题--三个灯泡--三个开关
- FFMPEG中INPUT和DEMUX分家
- Multicore Storage Allocation
- 学籍信息
- Tftp在cisco交换机上的使用
- Cisco4506+3500Vlan配置