c# - Setting Row Color based on Cell Contents in .NET CF DataGrid? -


I do SO (and) and for this as well as "ol" college myself "I can easily I want to change colors by getting it easily, or whatever it may be, I can not seem to apply the argument when my criteria is based on the contents of a cell.

It is trying to accomplish that if the content of cell [3] = "IN" then cry backlighter = color. Green .

I have read through this blog post () and it is downloading one () as well as the example code given on both.

Override the paint method in your datagrid column, read the cell value

  Object cellData = Base. Property descriptor.get value (source.list [row noam]);  

Add your logic to determine what color your background should be, then call the base color, call the base class painting method, which you want to use the background color. Are


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -