Can someone explain how DataGridView.CellPainting event and
DataGridViewCell.Paint are related? I've read how to add an event handler
method to a Form class, which will allow some customization of the
appearance of individual DataGridView cells.
I've also read how to override the Paint method of a class inheriting from
DataGridViewCell, to customize the appearance of individual cells.
I'm not understanding the difference in these 2 approaches. Can someone
briefly explain the sequence of "events" in which these methods get called,
and how they are related?
Thanks for any input.
J
Kevin Spencer - 11 Dec 2006 18:19 GMT
You can handle the DataGriedView.CellPainting event to customize the
painting of every cell, or any group of cells, as it fires for every cell.
The DataGridViewCell.Paint event is fired by the individual cell.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com
Expect the unaccepted.
> Can someone explain how DataGridView.CellPainting event and
> DataGridViewCell.Paint are related? I've read how to add an event handler
[quoted text clipped - 9 lines]
> Thanks for any input.
> J