想要把一个集合里的内容,直接绑给MSFlexgrid,行不行呀,
我是这样做的,我自己看着都不对劲,但我想不出该怎么做?
For i = 1 To scrCol.Count
Flx1.DataSource = scrCol.Item(i)
Next i
我是这样做的,我自己看着都不对劲,但我想不出该怎么做?
For i = 1 To scrCol.Count
Flx1.DataSource = scrCol.Item(i)
Next i
解决方案 »
- 请教Veron_04,VB和FX3U通讯问题,谢谢。
- 请问:在各个form中切换的问题
- 猴子吃桃问题,请各位帮忙写一下
- 如何得到计算机的操作系统的版本(如是98还是2000)
- 运行结果为什么总是只有一条记录??
- 有哪位用过vsflexgrid7这的第三方控件吗?
- 我在工程中加载了一个新的FORM,我想把新加载的FORM做为主窗体,应该怎样修改设置才能实现呢?
- 请问为什么用datareport预览时,有的时候只显示报表格式的一部分??不胜感激
- 如何判断一个对象为空?myobject=nothing有何错误??
- 请教VB加SQL数据库编程
- 关于web地址的问题
- 两个简单得要命的问题!简直是白白送分!!!
For i = 1 To scrCol.Count
Flx1.TextMatrix(i,1)= = scrCol.Item(i)
Next i
With msfGrid
.Rows = .FixedRows
If intRows > .FixedRows Then
If .Redraw Then .Redraw = False
.Cols = intCols
.Rows = intRows
.Col = 0 '.FixedCols
.Row = .FixedRows
.ColSel = .Cols - 1
.RowSel = .Rows - 1
.Clip = strClip
.Col = 0 '.FixedCols
.Row = .FixedRows
.Redraw = True
.RowHeightMin = 300
End If
End With
End Sub
msfgrid.formatstring = "<A" + vbtab + "<B" + vbtab + "<C"'例如
for i = 1 to 10
strClip = strclip & "A" & i & vbtab & "B" & i & vbtab & "C" & i & vbcr
next i intRows = 10 '10行
intCols = 3 '3列ClipToGrid msfgrid, strclip, intRows, intCols