我想设置mshFLEXGRID的表头标题(就是第一行的标题)为我自己希望的标题请高手指教如何实现?

解决方案 »

  1.   

    1,with mshflexgrid
        .rows=1
        .cols=1
        .textmatrix(0,0)="标题1"
        .textmatrix(0,1)="标题2"
      end with 2,if rs.state=adstateopen then rs.close
      rs.open "select aa as 标题1,bb as 标题2 from tablename",conn,adopenkeyset,adlockreakonly
      set mshflexgrid.datasource=rs
      rs.close
      set rs=nothing
      

  2.   

    利用FormatString,例如:
    FormatString="^标题1|^标题2|^标题3"
      

  3.   

    with mshflexgrid
        .textmatrix(0,0)="标题1"
        .textmatrix(0,1)="标题2"
      end with