如何从.cs文件应用网格视图页脚的样式 [英] how to apply a style for a grid view footer from .cs file

查看:67
本文介绍了如何从.cs文件应用网格视图页脚的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该在这个表达式中添加什么来使字体变大? PLZ help



what should i add to this expression to make the font larger ??? plz help

if (e.Row.RowType == DataControlRowType.Footer) {
			e.Row.Cells[3].Text = "Total: " + ShoppingCart.Instance.GetSubTotal().ToString("C");
		}

推荐答案

根据需要设置该Cell的样式:

Set the style of that Cell as per need:
e.Row.Cells[3].CssClass = "myBoldStyle";



根据需要定义样式。


Define the style as per your need.


这篇关于如何从.cs文件应用网格视图页脚的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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