恭喜,你发布的帖子
发布于 2022-12-02 11:09:28
4楼
Dim olist
Set olist = ScreenItems("Grid") '控件名称
olist.clear
olist.Cols=5 '列数
olist.Rows = m+1 '行数量
For i = 0 To 4
olist.ColAlignment(i)=3'列内容居中显示
Next
'设置列宽
olist.ColWidth(0) = 800
olist.ColWidth(1) = 1200
olist.ColWidth(2) = 1200
olist.ColWidth(3) = 1200
olist.ColWidth(4) = 1200
大师 我像你这样写了 而且我还设置了 olist.TextMatrix(0,0)="序号" 但是运行之后 MSFlexGrid控件并没有任何变化 行数 列数 列宽都没有改变 列名称也没有显示出来 这是为什么呢
请填写推广理由:
分享
只看
楼主