本文介绍了如何在DataGrid中将转换后的字节数组显示为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在我的数据网格中显示图像.我正在从sql数据库中提取所有信息.图像作为字节数组在数据库中.我很确定我已经弄清楚了如何从字节数组转换回图像的部分,现在我试图弄清楚在转换后如何在网格中显示图像.任何帮助,将不胜感激.谢谢

I want to be able to show images in my datagrid. I am pulling all info from a sql database. The images are in the database as byte arrays. I am pretty sure I have figured out the part of how to convert from byte arrays back to the image, now I am trying to figure out how to display the image in the grid after it has been converted. Any help would be appreciated. Thanks

推荐答案

编辑列>列类型>选择DataGridViewImageColumn

Edit Columns > Column Type > Select DataGridViewImageColumn

这篇关于如何在DataGrid中将转换后的字节数组显示为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 08:25