Hi Eric,
Sorry for the delay in getting back to you.
You could get this working by handling the TableControlCellDrawn event and draw image in the error cell. Below is a code snippet:
private void grid_TableControlCellDrawn(object sender, GridTableControlDrawCellEventArgs e)
{
GridTableCellStyleInfo style = e.Inner.Style as GridTableCellStyleInfo;
if (style.TableCellIdentity.Column != null && e.Inner.Style.CellType == "Currency")
{
if (e.TableControl.Table.CurrentRecordManager.Properties[style.TableCellIdentity.Column.Name].IsError)
{
e.Inner.Cancel = true;
Console.WriteLine(style.TableCellIdentity.Column.Name);
// Highlight error column
Brush br = new SolidBrush(Color.FromArgb(64, Color.Red));
e.Inner.Graphics.FillRectangle(br, e.Inner.Bounds);
br.Dispose();
try
{
Rectangle iconBounds = Rectangle.FromLTRB(e.Inner.Bounds.Right - 15, e.Inner.Bounds.Top, e.Inner.Bounds.Right, e.Inner.Bounds.Bottom);
iconBounds.Offset(-2, 0);
IconPainter.PaintIcon(e.Inner.Graphics, iconBounds, Point.Empty, "SFERROR.BMP", Color.Red);
}
catch
{ }
Rectangle rect = e.Inner.Bounds;
rect.Size = new Size(rect.Width - 15, rect.Height);
e.Inner.Renderer.Draw(e.Inner.Graphics, rect, e.Inner.RowIndex, e.Inner.ColIndex, e.Inner.Style);
}
}
}
Modified sample :
http://www.syncfusion.com/Support/user/uploads/ModifiedWindowsApplication1_19b48fef.zipRefer the TestErrorProvider browser sample for drawing the icon in a cell.
[installdrive]\Syncfusion\Essential Studio\4.3.0.25\windows\Grid.Grouping.Windows\Samples\TestErrorProvider\cs
Best Regard,
Haneef