PaintGroupRow
I'm trying to paint the group rows and would like to remove the painting of the space after the last column. So in the PaintGroupRow handler I have the following:
e.Parts &= e.Parts ^ PaintPart.SpaceAfterLastColumn;
This doesn't seem to work however.....Is it possible to not paint the space after the last column for group rows?
0
-
Hi,
Only non-grouped rows have space after the last column. Grouped rows are fit to grid’s width. If we understand you want to prevent from background painting. To do it use the next:e.Parts &= e.Parts ^ PaintPart.Background;
If you want to add your custom drawing, you can use the following:
//Do default drawing
e.Parts &= e.Parts ^ PaintPart.Background;
e.PaintAll();
e.Handled = true;
//Add a custom post-drawing
e.Graphics.DrawSomething(...);Best regards,
Dapfor0
Please sign in to leave a comment.
Comments
1 comment