DataGrid repaint problem

Sep 22 2004 10:33 AM
Hi Guys, I am trying to change a value in a particular cell with different color. For this I tried an example from MSDN in which the author implements a calss that inherits from DataGridTextBoxColumn with only one method PaintCol(g, cellRect, cm, hi.Row, bBrush, fBrush, false); that in turn calls the base class paint method with my desired text and backGround color. The function call prints the text with the specified color but soon after because of the implicit call to the paint method the cell repaint with the default color. Could anybody know how to do so.

Answers (5)