override Paint method for DataGridColumnStyle class for compact framework

hlng

Newcomer
Joined
Oct 8, 2003
Messages
6
I am developing a pocket pc application

I want to change the color of a DataGrid cell. For that, I'd like to override the Paint method of DataGridColumnStyle class.

My code is as follows:

public override void Paint(Graphics g, Rectangle Bounds, CurrencyManager Source, int RowNum, Brush BackBrush, Brush ForeBrush, bool AlignToRight)
{
...
}

The error I have is : "no suitable method to override"

Regards,
Derek Ng
 
Back
Top