Form 1
Internal class get data{
public static Image getImages { get; set; }
}
private void dgv1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (!dgvMPdetails.Rows[e.RowIndex].IsNewRow)
{
byte[] ImageArray = (byte[])dgvMPdetails.CurrentRow.Cells[16].Value;
if(ImageArray.Length != 0)
{
ImageByteArrays = ImageArray;
getData.getImages = Image.FromStream(new MemoryStream(ImageArray));
}
getData.getNimages = dgvMPdetails.Rows[e.RowIndex].Cells[17].Value.ToString();
}form 2
public partial class frmProductDetails : Form
{
public Image getdgvImages = frmMPdetails.getData.getImages; }
public void loaditem()
{
pbximages.Image = getdgvImages;}
Hello Please Help Me. how can I call the image inside of the datagridview to another form and display it to a picture box. Thank You so much

Salman BegRank #284 · 8.8K reputationPosted Feb 23, 2019, 7:38 PM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 18, 2019, 5:40 AM EST