I have a form. On formshow, I initialize values of a field into stringgrid cells, but it shows a shadow under cell's texts.
I've used Persian charaters for field's values.
I did the same with english values, but it works fine.
I appreciate any suggestions.
example of the output:

With enaabled
DefaultDrawingthe text will be already rendered if you enterOnDrawCell.Since you are calculating the needed rowheight in painting using
DT_CALCRECTofDrawTextyou will have to calculated theRectwich shall be filled/cleared withFillRect.You can use
UnionRectto get the final Rect which has to be filled (FillRectin the example).