简体   繁体   English

如何在数据网格中将转换后的字节数组显示为图像

[英]how to display converted byte array as image in datagrid

I want to be able to show images in my datagrid.我希望能够在我的数据网格中显示图像。 I am pulling all info from a sql database.我正在从 sql 数据库中提取所有信息。 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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM