有的字段是货币currency
有的是摘要
还有的是bool
通过DataEnvironment绑定的,如何处理?
实在不行的话,用MSHFlexGrid可行吗?

解决方案 »

  1.   

    做个循环,逐行格式化
    dim irow as integer
    dim icol as integer
    with flexgrid
        for irow=1 to .rows-1
            for icol=0 to .cols-1
               '数值型
               .textmatrix(irow,icol)=format(.textmatrix(irow,icol),"standard")
               'bool型
               if .textmatrix(irow,icol)="true" then
                   .textmatrix(irow,icol)="是"
               else
                   .textmatrix(irow,icol)="否"
               end if
            next icol
         next irow
      end with