Re: DataGrid Paint problem by ClayB
ClayB
Sat Jul 17 04:40:08 CDT 2004
If you are using a derived columnstyle to override its Paint method to do
the colored text, then you could add a member to the derived class that
holds the column index (or name or whatever). Then when you create this
columnstyle, you can set this member so it woul dbe available to your Paint
override to identify the column being drawn.
======================
Clay Burch, .NET MVP
Visit www.syncfusion.com for the coolest tools
"toysrwill" <ldybug@peoplepc.com> wrote in message
news:f57bd0a2.0407161037.4d1711f2@posting.google.com...
> I'm trying to make the text in one column red while the rest of the
> text is black. I've managed to change the color based on information
> in the grid and by row number, but I'm unable to get the current
> column number I'm in when it goes through the Paint override. Any help
> would be much appreciated.
> Thanks in advance
> Will Everett