2 万行数据,如何显示比较快呢
我读取数据库2万多行数据,显示到MSFlexGrid1中,但是太慢了 如何改进呢?With MSFlexGrid1
Do While Not rs.EOF
.AddItem "", 1
.ColWidth(0) = 1000
.ColWidth(1) = .Width - .ColWidth(0)
.Row = 1
.Col = 0
.CellAlignment = flexAlignCenterCenter
'在表中显示
.TextMatrix(1, 0) = 1
.TextMatrix(1, 1) = rs(3)
DoEvents
rs.MoveNext
loop
End With