This is very standard in the full .net version. I want to Bind to a collection of objects and then handle a RowDataBound event of some sort and change the background color of the row based upon one of the objects properties. Is this possible in Windows Mobile using the .Net CF 3.5?
C# – Conditional formatting in a DataGrid using .Net Compact Framework 3.5
.net.net-3.5c++compact-framework
Best Solution
I'm having the same trouble atm, here's my soloution so far:
The hard way: draw it yourself
The last approach gives you complete controll. Note that the format string would look something like this:
Instead of
To add the Coloums:
The only way to change the height of the rows seems to change
DataGrid.PreferedRowHeight
but this set the height for all rows. Depending on your needs it might be a good idea to derive a new class for every column. This is still work in progress for me, so if you've got any tipps let me know, please. Good luck with that ;D