简体   繁体   English

Compact Framework中的Datagrid-格式单元格

[英]Datagrid in Compact Framework - format cell

I would like to format (cell background color for a whole row) a gridview in Compact Framework. 我想在Compact Framework中格式化(整个行的单元格背景色)gridview。

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. 因此就像ex.:dt总共4行中的一行。

What is the simplest way? 最简单的方法是什么?

Do i need to override Paint() ? 我需要重写Paint()吗?

在Codeplex上有一个自定义CF DataGrid格式的相当广泛的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM