我在绑定记录集(vRs)到VSFlexGrid 后,再使用FormatString 时,没有达到我想要的结果:因为记录集中的字段名为英文,我想用 FormatString 属性将之变为中文的,我的代码是:
Set vsGrid.DataSource = vRs
vsGrid.FormatString = " 价格类型 |类型名称 |分摊商家"
Set vsGrid.DataSource = vRs
vsGrid.FormatString = " 价格类型 |类型名称 |分摊商家"
Vsgrid.TextMatrix(0, 0) = "序号"
Vsgrid.TextMatrix(0, 1) = "价格类型 "