e.Item.Attributes.Add("onMouseOver","this.style.backgroundColor='#e9e9e9'; this.style.cursor='hand';");e.Item.Attributes.Add("onMouseOut","this.style.backgroundColor='#f7f7f7';");  
给你参考

解决方案 »

  1.   


    <BoundColum>
    <headstyle></headstyle>
    <Itemstyle bgcolor=red></Itemstyle>
    </BoundColum>看到了吧,在Itemstyle里写
      

  2.   

    要是跟绑定的数据相关的话就在itemdatabound事件中设置cells的属性
      

  3.   

    dataGrid1.BackgroundColor = Color.Yellow;
      

  4.   

    在DataGrid1的ItemDataBound事件中加入如下代码
    e.Item.Cells[0].BackColor=Color.Blue;
      

  5.   

    没找到ItemDataBound事件。
    你给的是Web上的吗?
    我问的是Winform的。
    请再赐教!