Hi,
In the examples can see lots of way to format cells by column name but are looking to format a cell based on other cell values in the same row. E.g.
if (e.CellElement.ColumnInfo.HeaderText == Sectional20)
{
if (e.CellElement.RowInfo.Cells[Sectional20FrontRear].Value != null)
{
if ((string)e.CellElement.RowInfo.Cells[Sectional20FrontRear].Value == "Rear")
{
e.CellElement.ForeColor = Color.FromArgb(201, 0, 30);
e.CellElement.Font = newFontBold;
}
else if ((string)e.CellElement.RowInfo.Cells[Sectional20FrontRear].Value == "Front")
{
e.CellElement.ForeColor = Color.FromArgb(44, 100, 170);
e.CellElement.Font = newFontBold;
}
else
{
e.CellElement.ForeColor = Color.FromArgb(0, 0, 0);
e.CellElement.Font = newFontRegular;
}
}
}
Is this possible with Syncfusion sfDataGrid.
Kind regards,
Neil