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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top