Search code examples
c#datagridcompact-framework

Datagrid in Compact Framework - format cell


I would like to format (cell background color for a whole row) a gridview in Compact Framework.

It would not be something like alternating row style, but it would depend on some data the datasource has. So it's like ex.: one row out of total 4 rows for the dt.

What is the simplest way?

Do i need to override Paint() ?


Solution

  • There's a pretty extensive example of customizing the CF DataGrid's formatting on Codeplex.