FrmDatos y FrmExec: Corregir carga de imágenes
This commit is contained in:
@@ -144,6 +144,17 @@ namespace ServerExplorer.UI
|
||||
dgvDatos.DataSource = ddt;
|
||||
}
|
||||
|
||||
private void dgvDatos_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
|
||||
{
|
||||
if (e.DesiredType == typeof(Image))
|
||||
{
|
||||
if (e.Value is DBNull || (e.Value is byte[] && ((byte[])e.Value).Length <= 0))
|
||||
{
|
||||
e.Value = new Bitmap(1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user