قسمت سیزدهم : تصویر در گرید

Learning_Janus_13.rar

ضمنا این کد ها را در خط آخر متد FillData بعد از دستور
cmb_Units.SelectedValue = dbu.Unit_Code;
مربوط به UC_Person اضافه نمایید این قسمت تصویر را از بانک اطلاعات خوانده و در PictureBox نمایش میدهد


if (dbu.Person_Image != null)
{
byte[] arrPicture = (byte[])(dbu.Person_Image).ToArray();
MemoryStream ms = new MemoryStream(arrPicture);
this.Photo.Image = Image.FromStream(ms);
}
else
this.Photo.Image = Properties.Resources.personel;