hi
why are all fields empty when scrolling
private void dgvTaskFactory_ViewCellFormatting(object sender, CellFormattingEventArgs e) {
if (e.CellElement is GridHeaderCellElement) {
e.CellElement.TextWrap = true;
e.CellElement.TextAlignment = ContentAlignment.BottomLeft;
} else {
if (e.CellElement is GridCellElement cell) {
if (cell.ColumnInfo.Name == ColumnTitle.GridTasklistMail.priority) {
cell.DrawText = false;
cell.Image = Image.FromFile(Convert.ToInt32(cell.Value.ToString()) == -1 ? "express.png" : "timable.png");
} else {
cell.Image = null;
}
}
}
}