在GridView中交替行样式 [英] Alternating Row Style in a GridView

查看:83
本文介绍了在GridView中交替行样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在将CSS的替代行样式应用于gridview时遇到麻烦. GV似乎只采用了"RowStyle"属性.我什至尝试通过GridView属性窗口强制使用替代行样式",AlternateRow Style. 我将其颜色更改为亮绿色,该颜色显示在CSS示例"窗口中.窗口,但不在实际的GridView中.  这是CSS代码段:

I am having trouble applying the alternate row style from my CSS to my gridview.  The GV seems to take on only the "RowStyle" attributes. I have even attempted to force the Alternate Row Style via the GridView Property window, AlternateRow Style.  I changed its color to a bright green which shows up in the CSS "example" window but not in the actual GridView.  Here is the CSS snippet:

.GridView
{
  background-color: #EAEFF3;
  color: #000080;
  font-size: .8em;
  vertical-align: middle;
  text-align: center;
}

推荐答案

Hi,

 

T 与该问题有关的问题 CSS超出了本论坛的范围,建议您发布到 :

The question relating to CSS is beyond the scope of this forum, I suggest you post to: http://forums.asp.net/.

 

您将获得那里专家的更好支持.

 

最好的问候,

哈里·朱-MSFT

Harry Zhu- MSFT

论坛中的MSDN订阅者支持

如果您对我们的支持有任何反馈,请联系msdnmg@microsoft.com


这篇关于在GridView中交替行样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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