使用MSHFlexGrid的FormatString属性可以做到一次设置行标题和列标题
Dim sTitle As String
sTitle = "<Name |<Address |<Telephone |<Social Security>"
sTitle = sTitle + ";|Robert|Jimmy|Bonzo|John Paul"
MSHFlexGrid.FormatString = sTitle
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/