نوع بيانات الصوره هو byte[]
اضف شرط عدم وجود صوره
كود :
public byte[] PHOTO { get; set; }اضف شرط عدم وجود صوره
كود :
if (Dgv_Data.CurrentRow.Cells[4].Value != null) {
byte[] Picture4 = (byte[])(Dgv_Data.CurrentRow.Cells[4].Value);
MemoryStream ms4 = new MemoryStream(Picture4);
Pb_PHOTO.Image = Image.FromStream(ms4);
} else { Pb_PHOTO.Image = null; }