如题!谢谢!

解决方案 »

  1.   

    使用css
    style="cursor:hand"
    DataGrid的ItemStyle有很多了。选择一个添加进取就是
      

  2.   

    DataGrid的ItemStyle有很多了。选择一个添加进取就是-----------
    怎么选?在哪添加?
      

  3.   

    <script>
    var bColor='#ff3300'; //定义颜色,为单击时显示的颜色
    var fColor='#fafafa'; //定义颜色,为单击时字体所显示的颜色
    function tdOver(td)
    {
    if(td.style.backgroundColor!=bColor)//当这一列的背景颜色不为以上定义的颜色时
    {
    td.setAttribute('DtBg',td.style.backgroundColor);//得到这列的背景颜色并且设置为DtBg<br>
    td.setAttribute('DtCo',td.style.color);//得到这列的字体颜色并且设置为DtCo<br><br>
    td.style.color='#ff66cc';//设置鼠标移上时列里的字体颜色为#ff99ff<br>
    td.style.cursor='hand';//设置鼠标的形状为手状<br>
    td.style.backgroundColor='#66cc66';//设置该列的背景颜色为#66cc66<br>
    }
    } function tdOut(td)
    {
    if(td.style.backgroundColor!=bColor)//当这一列的背景颜色不为以上定义的颜色时<br>
    {
    td.style.backgroundColor=td.getAttribute('DtBg');//设置该列的背景颜色为以上得到的颜色,即DtBg<br>
    td.style.color=td.getAttribute('DtCo');//设置该列的背景颜色为以上得到的颜色,即DtCo<br>
    }
    }
    </script>