特珠导航栏.txt

来自「C# 是创新性的新式编程语言」· 文本 代码 · 共 29 行

TXT
29
字号
使用脚注
默认为false
必须设置为ShowFooter="True"

通过如下设置脚注风格
<FooterStyle BackColor="Lime"></FooterStyle>


使用列的FooterText属性指定(属性编辑中)
FooterText="cc"

将脚注作为摘要

		private void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
		{
			ListItemType elemType=e.Item.ItemType;//获得被创建项的类型
			if(elemType==ListItemType.Footer)
			{
				TableCellCollection tcc=e.Item.Cells;
				int nTotalCols=tcc.Count;
				//删除无用单无格
				for(int i=0;i<nTotalCols-1;i++)
					e.Item.Cells.RemoveAt(i);
				//此时只有一个单元格
				TableCell c=e.Item.Cells[0];
				c.ColumnSpan=nTotalCols;
				c.Text=DataGrid1.PageCount.ToString()+"page found.";//共多少页
			}
		 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?