DataGrid OnPaintBackground not working

  • Thread starter Thread starter Mark.Larsen
  • Start date Start date
M

Mark.Larsen

My override of DataGrid's OnPaintBackground gets called,
but the final display only shows whatever was set in
BackgroundColor. Why is DataGrid repainting the
background after my override?
 
After more pushing and shoving I was able to handle my
painting needs in the OnPaint method for the DataGrid
which appears to be one of the last paint methods called
(after DataGridColumnStyle, etc.). Conclusion, it
appears that the OnPaint method redraws over whatever the
OnPaintBackground painted, unless I'm misunderstanding
what OnPaintBackground is supposed to do.
 
Back
Top