This code draws text in cell:
StringFormat sf = this.StringFormat;
//specify alignment
sf.Alignment = DrawManager.TranslateAlignment(this.textAlign);
//specify line alignment
sf.LineAlignment = DrawManager.TranslateLineAlignment(this.textAlign);
//specify RTL
if (dci.RightToLeft)
sf.FormatFlags |= StringFormatFlags.DirectionRightToLeft;
else
sf.FormatFlags &= ~StringFormatFlags.DirectionRightToLeft;
//draw
using (Brush foreColorBrush = new SolidBrush(foreColor))
{
dci.g.DrawString(text, dci.Font, foreColorBrush, (RectangleF)rect, sf);
}
Try to use this code to draw series of rectangles and you'll receive same problem.
But problem in incorrect work of Graphics.DrawString