如题:2个问题都很有难度我觉得1、在GRIDVIEW中可能实现象CS的表格一样,滚动条向右移动时,固定左边几列
  例如,用户在左右移动时 ,左边一列 姓名,性别 固定不动,
2、如果某一列的标题包含 “合计”这个值(有可能列包含合计),则整列设成一个颜色。这个挺有难度的感觉http://topic.csdn.net/u/20090506/00/fea9181a-ef97-4351-8c93-ef6809a9e884.html上面这个地址是第2个问题设置 标题行的办法(allowsorting=true的问题,还没有解决)
要设定数据列用很土的办法写个变量应该是可以第1个问题比较难感觉

解决方案 »

  1.   

    你找找YYControls,那里面的SmartGridView可以实现这个效果
      

  2.   

    不会。一行放两个GRIDVIEW试试?
      

  3.   

    /* Div container to wrap the datagrid */
    *div #divgridview {
    overflow:auto!important;  overflow-x:auto ;
    overflow-y:auto ; padding: 0px!important;   left: 0px!important;
       margin: 0px!important; 
       border-right: 0px solid; 
       border-top: 0px solid; 
       border-left: 0px solid;
       border-bottom: 0px solid;
    position:relative!important;
    list-style:none!important;
    display:block!important;
    z-index:1!important;
    scrollbar-base-color:White;}
    /* Locks table header */
    *th {
       position:relative!important;
       top:expression(this.offsetParent.scrollTop)!important;
       
    }/* Locks table Column */
    .fixText

    position:  relative!important;
    left:  expression(this.offsetParent.scrollLeft)!important; } 



    .fixHead

    z-index:100;
    position:relative!important;
    top:expression(this.offsetParent.scrollTop)!important;
    left:  expression(this.offsetParent.scrollLeft)!important; 

    } 基本搞定