mshflexgrid1.row=0
mshflexgrid1.col=0
mshflexgrid1.text=...
mshflexgrid1.col=1
mshflexgrid1.text=...
mshflexgrid1.col=2
mshflexgrid1.text=...
mshflexgrid1.col=3
...
列标题在第0行。

解决方案 »

  1.   

    1.修改列标题,用FormatString属性.或都就是直接写入textmatrix(0,col)
    2.排序用sort属性:如果要按第一列排序,则:
    MshFlexGrid.col=0
    MShFlexGrid.sort=(常数,排序的方式)
      

  2.   

    使用sort属性,并不好使,
    运行是报错说,”在绑定分层数据上,使用无效。“还有,我用了textmatrix属性,出现不正常的情况,象我在前面说过的那样。
    在0带区里好使,在1带区中报错,下标无效。
      

  3.   

    首先写列数:MshFlexGrid.cols=4
               MshFlexGrid.rows=4
               with MshFlexGrid
                    .row=0
                    .col=0
                    .text=...
                    .col=1
                    .text=...
               end with
      

  4.   

    MshFlexGrid标题用formatstring属性,如:
    MshFlexGrid.formatstring="序号|姓名|性别|年龄"
      

  5.   

    我最后使用colheadercaption解决的第1个问题。但是,第2个还没有解决呢。