根据图像设置datagridview单元格大小 [英] set the datagridview cell size according to the images

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

问题描述

在我的窗口基础应用程序中。我已将扫描(.jpeg,.png..etc)图像上传到我的数据库中为二进制格式。但我想只将图像显示到datagridview中。一旦我绑定图像,所以datagridview单元格大小根据图像变大。但我希望图像尺寸应该很小,一旦用户点击它,以便特征图像应该很大。请给我一些提示。或者例子。我

in my window base application. i have uploaded scan(.jpeg,.png..etc) images into my database into binary format.but i want to display only images into datagridview. once i bind the images so datagridview cell size becomes large as per the images. but i want image size should be small and once user click on it so that pirticular image should be large. please give me some hints. or examples . i

推荐答案





使用任何css类将图像的大小设置为小想要并使用css active来点击时放大图像。



你也可以使用on_Click事件作为图像按钮。



使用z-index属性来避免设计崩溃。



希望这对您有所帮助,如果您有任何进一步的疑问,请告诉我。 />


谢谢!
Hi,

Set the size of the image as small using any css class as you want and use the css active to enlarge the image while clicking.

Also you can use on_Click event for the image button.

Use z-index property to avoid the design collapsing.

Hope this help you , if u have any further queries let me know.

Thanks !


这篇关于根据图像设置datagridview单元格大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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