[求助]在MSHFLexGrid如何实现固定行单元格合并
请问,如何在设置MSHFLexGrid表固定行的时候实现两行固定行,第一行单元格跨列多行合并。效果如下:项目1 | 项目2
数量 |单价 |金额 |数量 |单价 |金额
Option Explicit
Private Sub Form_Load()
Dim i As Long
MSHFlexGrid1.Rows = 3
MSHFlexGrid1.Cols = 5
MSHFlexGrid1.FixedCols = 0
MSHFlexGrid1.TextMatrix(0, 0) = "aa"
MSHFlexGrid1.TextMatrix(0, 1) = "aa"
MSHFlexGrid1.TextMatrix(0, 2) = "bb"
MSHFlexGrid1.TextMatrix(0, 3) = "bb"
MSHFlexGrid1.MergeCells = flexMergeRestrictColumns
For i = 0 To MSHFlexGrid1.Cols - 1
MSHFlexGrid1.MergeCol(i) = True
Next
MSHFlexGrid1.MergeRow(0) = True
End Sub
谢谢,学习