coloring difrent cells of data grid(winform)

  • Thread starter Thread starter Jay
  • Start date Start date
J

Jay

hi all,
how to color/ highlight the different cells of a win form data grid. my
requirement is to highlight all the cells having null values or failing the
rules defines. or atlest how to get to a particular cell proramatically
through c# code.

thanks in advance.
Jay
 
Hi
What you want o achieve here is conditional formatting for your datagrid .
You can find many examples and samples about that.
http://www.google.ie/search?hl=en&ie=UTF-8&q=Conditional+formatting+datagrid
++C%23&btnG=Search&meta=
However, I don't believe you can have that at the cell level with the built
in control (may be at column level or row level). I think you would need to
implement you own component if you need to do that as per cell

Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Back
Top