Hi Rocko,
If you want to draw the Exclamation mark on invalid cell, you need to handle the TableControlDrawCell event of the grid and draw image using the Graphics.DrawImage method. Here is a code snippet.
private void gridGroupingControl1_TableControlDrawCell(object sender, GridTableControlDrawCellEventArgs e)
{
GridTableCellStyleInfo style = e.Inner.Style as GridTableCellStyleInfo;
if( style != null
&& style.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record
&& e.Inner.Style.Tag != null
&& style.TableCellIdentity.Column != null
&& style.TableCellIdentity.Column.Name == "OtherInfo" )
{
e.Inner.Renderer.Draw(e.Inner.Graphics,e.Inner.Bounds,e.Inner.RowIndex,e.Inner.ColIndex,e.Inner.Style);
Rectangle rect =new Rectangle( new Point(e.Inner.Bounds.Right - 20,e.Inner.Bounds.Top ),new Size(20,e.Inner.Bounds.Height));
e.Inner.Graphics.DrawImage(RedExclamation ,(RectangleF)rect);
}
}
Please refer to modifed sample for more details.
ErrorIconGGCValidIBindingList.zipBest regards,
Haneef