internal static bool DrawCell(StylistDrawInfo sdi, bool test)
{
if (!test)
{
//draw to printer - change colors
NineRays.Windows.Forms.Grids.CellDrawInfo cdi = sdi.Context as NineRays.Windows.Forms.Grids.CellDrawInfo;
if (cdi != null && cdi.Preview)
{
cdi.customForeColor = Color.Black;
cdi.customBackColor = Color.White;
return true;
}
}
return true;
}
That doesn't work...
When I always return true, then my custom nodes don't draw correctly. If I don't return true, test is always true and the code is never hit