2012年格式化DataGrid单元格的方式 [英] 2012 way to format the cell of a datagrid

查看:65
本文介绍了2012年格式化DataGrid单元格的方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试搜索此内容,虽然我找到了以前的帖子,但不知道我是否在阅读过时的信息.我很失望,没有一种更直观的方法来执行此基本的常用功能:以编程方式更改 网格单元格的内容或格式/字体/颜色.

I have tried to search for this, and while I have found some previous posts, I don't know if I'm reading obsolete info.   I'm disappointed that there is not a more intuitive way to do this basic, common function:  programmatically changing the contents or format/font/color of a cell of a grid.

有人可以指出2012年最简单的方法吗?谢谢.

Can someone point at the 2012, easiest way to do this?     Thank you.

在ASP.NET中,一种简单的方法是使用Labels,然后在标签内使用html.

In ASP.NET land, one easy way was to use Labels and then use html inside the labels.  Is there not something analogous that is that simple?

推荐答案

此如何"应该会告诉您如何做自己想做的事.

This "How To" should show you how to do what you want.

如何:格式化数字和日期


这篇关于2012年格式化DataGrid单元格的方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆