1,451
社区成员
发帖
与我相关
我的任务
分享
Private Sub Form_Load()
MSHFlexGrid1.Rows = 4
MSHFlexGrid1.Cols = 5 '多设 1 列
MSHFlexGrid1.ColWidth(2) = 0 '第 3 列隐藏
MSHFlexGrid1.TextMatrix(2, 0) = "A"
MSHFlexGrid1.TextMatrix(2, 1) = "A"
MSHFlexGrid1.TextMatrix(2, 3) = "A"
MSHFlexGrid1.TextMatrix(2, 4) = "A"
'合并单元格
MSHFlexGrid1.MergeRow(2) = True
MSHFlexGrid1.MergeCells = 2
End Sub