Hi,
I'm trying to draw a maker in the cell, by using the GridDrawCellEvent. Also, I use e.cancel = true to keep the marker in the cell all time. At the same time, I put a text string in the same cell by using QueryCellInfo event. But the text doesn't show.
So, If I have
private void gridControl_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
e.Style.CellValue="a text message";
}
private void gridControl_DrawCell(object sender, GridDrawCellEventArgs e)
{
e.Graphics.FillPolygon(blueBrush, curvePoints, newFillMode);
}
then, the text string is showing, but the drawing is not stable. When the mouse hovers over the cell, the drawing is gone (or mouseClick);
if I have
private void gridControl_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
e.Style.CellValue="a text message";
}
private void gridControl_DrawCell(object sender, GridDrawCellEventArgs e)
{
e.Graphics.FillPolygon(blueBrush, curvePoints, newFillMode);
e.Cancel = true;
}
then, the drawing is stable, but the CellValue does not show.
Is there a way to fix the drawing and also be able to show the CellValue ?
Thank you for your help!!
Jiali