We have four classes
class C1 : Column
{
public override void PaintCell(CellDrawInfo dci)
{
some code
-------
-------
base.PaintCell(dci);
}
}
class C2 : ButtonColumn
{
public override void PaintCell(CellDrawInfo dci)
{
some code
-------
-------
base.PaintCell(dci);
}
}
class C3 : HierachyColumn
{
public override void PaintCell(CellDrawInfo dci)
{
some code
-------
-------
base.PaintCell(dci);
}
}
class C4 : LookupListColumn,IDropDownListService
{
public override void PaintCell(CellDrawInfo dci)
{
some code
-------
-------
base.PaintCell(dci);
}
}
All these are added to fly grid. And we are intermittently getting the below error at base.PaintCell(dci); line in the above four classes.
ArgumentException was unhandled by user code
Parameter is not valid
Stack Trace:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at NineRays.Windows.Forms.Grids.Column.PaintTextInCell(CellDrawInfo dci, Brush bkBrush, Color foreColor)
at NineRays.Windows.Forms.Grids.Column.PaintCellValue(CellDrawInfo dci)
at NineRays.Windows.Forms.Grids.Column.PaintCell(CellDrawInfo dci)
at CapitalIQ.Client.Presentation.CustomLookUpListColumn.PaintCell(CellDrawInfo dci) in C:\SRC\OfficeClient\branches\RC8.60\Excel\CapitalIQ.Client.Presentation\CapitalIQ.Client.Presentation.UI\LinkedItemManager\Columns\CustomLookupListColumn.cs:line 174
at NineRays.Windows.Forms.Grids.Drawing.GridPainter.3(CellDrawInfo )
Any clue?