怎样设置DataGrid列的背景色?在线等。 e.Item.Attributes.Add("onMouseOver","this.style.backgroundColor='#e9e9e9'; this.style.cursor='hand';");e.Item.Attributes.Add("onMouseOut","this.style.backgroundColor='#f7f7f7';"); 给你参考 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <BoundColum><headstyle></headstyle><Itemstyle bgcolor=red></Itemstyle></BoundColum>看到了吧,在Itemstyle里写 要是跟绑定的数据相关的话就在itemdatabound事件中设置cells的属性 dataGrid1.BackgroundColor = Color.Yellow; 在DataGrid1的ItemDataBound事件中加入如下代码e.Item.Cells[0].BackColor=Color.Blue; 没找到ItemDataBound事件。你给的是Web上的吗?我问的是Winform的。请再赐教! 「继续玩」字符识别练习 分拆字符(验证码、车牌号、身份证号等) vs2005升级正式版key 关于鼠标[[拖动]]treeView时,如何使用自定义的鼠标样式? c# 如何使picturebox匀速移动? MDI同时打开两个子窗口的问题 在学C#之前是否还要先看些什么书? Math.Round(1060.235, 2, MidpointRounding.ToEven)为什么是1060.23? [散分] 给我个建议!100 ListView重绘问题~~!! win2000 下编译的exe 在 xp下或98 下能用吗? ErrorProvider的问题 C#如何给AspNet用户增加权限?
<BoundColum>
<headstyle></headstyle>
<Itemstyle bgcolor=red></Itemstyle>
</BoundColum>看到了吧,在Itemstyle里写
e.Item.Cells[0].BackColor=Color.Blue;
你给的是Web上的吗?
我问的是Winform的。
请再赐教!