private void GridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { var row = gridView1.GetRow(e.FocusedRowHandle); if (row is BackStyleResponse backStyleResponse) { var fileId = backStyleResponse.FileId; try { var downloadBytesByFileId = FileApi.DownloadBytesByFileId(fileId); pictureEdit1.Image = Image.FromStream(new MemoryStream(downloadBytesByFileId)); } catch (Exception exception) { XtraMessageBox.Show(exception.Message); } } }