datagridview单元中的图像加载问题 [英] image loading problem in datagridview cells

查看:56
本文介绍了datagridview单元中的图像加载问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将图像加载到Windows窗体设计页面的datagridview单元中..当我单击按钮时,图像无法正确加载...当我滚动滚动条图像时,图像正确加载..请给我解决方案..


例如在第零列iam在5个单独的行中插入5张图像..当我执行Windows窗体时,datagridview的第一行显示在图像中..当我上下滚动滚动条时,将显示其他4张图像...图像或不独立加载...

Iam loading images in the datagridview cells of windows form design page..when i click the button,images are not loading properly...when i scrol the scroll bar images are loading properly..please give me solution..


for example in column zero iam inserting 5 images in 5 separate rows..when i execute the windows form first row of the datagridview is displayin the image..other 4 images will be displayed when i scrol the scroll bar up and down...the images or not independently loading...

推荐答案

尝试调用Invalidate()强制刷新,当您滚动并离开该位置时,它将失效.我没有理由看到这种情况的发生.
Try calling Invalidate() to force a refresh, it will invalidate when you scroll and apart from that, there''s no reason I can see for this to happen.


这篇关于datagridview单元中的图像加载问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆