在MSFlexGrid每行的多个单元格里添加图片,如果有100多行,添加显示图片的速度很慢。
添加方法如下:
    with FlexGrid
        for i = 1 to 100
            .row = i
            .col = i 
            Set .CellPicture = image.Picture  
        next
    end with
 
请问,有什么好的方法,能效率高点,速度非常快的添加

解决方案 »

  1.   

    with FlexGrid
          .redraw=false
            for i = 1 to 100
                .row = i
                .col = i 
                Set .CellPicture = image.Picture  
            next
          .redraw=true
        end with
    试试
      

  2.   

    .使用异步加载图片,可以在AfterScroll 事件中根据 滚动条下拉来加载图片
      

  3.   

    问题解决。
    fishmans(金脚指) 谢谢啦