NI
Nick
October 14, 2007 01:18 PM UTC
Hi,
I am drawing text very simply by first painting the background and then painting the text on OnDrawCell:
e.Graphics.DrawString(value, font, new SolidBrush(value.Style.TextColor), e.Bounds);
The problem I now have is that the borders on the cells are showing. If I let the grid draw itself, handling only QueryCellInfo, I can switch off the border to each cell using the following:
style.Borders.All = GridBorder.Empty;
style.CellAppearance = GridCellAppearance.Flat;
Where style is a reference to the TableStyle on my grid.
Any advice on how to deal with the borders?
Thanks,
Nick.
HA
haneefm
Syncfusion Team
October 17, 2007 12:12 AM UTC
Hi Nick,
Please try setting the Borders property in a PrepareViewStyleInfo event.Below are the codes:
e.Style.Borders.All = GridBorder.Empty;
Best regards,
Haneef