DataGrid Paint problem

  • Thread starter Thread starter toysrwill
  • Start date Start date
T

toysrwill

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
 
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
 
Back
Top