使用MSHFlexGrid的FormatString属性可以做到一次设置行标题和列标题
Dim sTitle As String
sTitle = "<Name |<Address |<Telephone |<Social Security>" &&设置列标题
sTitle = sTitle + ";|Robert|Jimmy|Bonzo|John Paul" &&设置行标题
MSHFlexGrid.FormatString = sTitle
原址:http://expert.csdn.net/Expert/topic/2678/2678955.xml?temp=.9466669