private void gridView1_Click(object sender, EventArgs e) { var sel = gridView1.GetFocusedRow() as tbAlpr; if (sel != null) { pictureBox2.Image = CImage.ByteArrayToImage(sel.PlateImageBg.Data); } }