关于msflexgrid控件
各位vb高手高高手:我,vb新米,有个msflexgrid控件不知道怎么用,又 不知道怎么加载这个控件,请各位高手指点一下下!
以下是程序
Public Sub ShowTitle()
Dim i As Integer
With FGridDatatable
'设置表头文字
.Cols = 10
.TextMatrix(0, 1) = "线路编号"
.TextMatrix(0, 2) = "起始城市"
.TextMatrix(0, 3) = "到达城市"
.TextMatrix(0, 4) = "起始日期"
.TextMatrix(0, 5) = "起始时间"
.TextMatrix(0, 6) = "到达时间"
.TextMatrix(0, 7) = "汽车编号"
.TextMatrix(0, 8) = "车票价格"
.TextMatrix(0, 9) = "备注"
'设置单元大小
.ColWidth(0) = 200
.ColWidth(1) = 1000
.ColWidth(2) = 1000
.ColWidth(3) = 1000
.ColWidth(4) = 1000
.ColWidth(5) = 1500
.ColWidth(6) = 1500
.ColWidth(7) = 1500
.ColWidth(8) = 1500
.ColWidth(9) = 1500
End With
End Sub