<pre>My codes are; <pre lang="c#"> // I create the data column for my Image and add this to the datatable DataColumn dc = new DataColumn("QR Code", typeof(Image)); dc.AllowDBNull = true; dTable.Columns.Add(dc); // I loop through all rows in datatable get the byte array of the image, and convert it to an Image // And then add this image to the newly created column. foreach (DataRow dr in dTable.Rows) { Image qrCode; byte[] qrCodeBytes = (byte[])dr["StockQRCode"]; using(MemoryStream stream = new MemoryStream(qrCodeBytes)) { qrCode = Image.FromStream(stream); dr[dc] = qrCode; } } // Bind my datatable to datagridview List_ListContainer.DataSource = dTable;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)