作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在使用网格来显示潜在客户数量。因为我必须显示 Page wise total 以及 Grand total。是否可以在页脚的 2 个不同行中显示它?给我一些建议。我必须在网格中添加 8 列。
最佳答案
您可以通过多种方式完成此操作,但其中一种是使用 TemplateField
这是您的 gridview 的格式(将您的内容放在单元格中)...
<Columns>
<asp:TemplateField>
<FooterTemplate>
<table width="100%">
<tr><td><asp:Literal runat="server" ID="ltField1" Text='<%# Bind("field1") %>'></asp:Literal></td>
</tr>
<tr><td>><asp:Literal runat="server" ID="ltField2" Text='<%# Bind("field2") %>'></asp:Literal></td>
</tr>
</table>
</FooterTemplate>
...
关于c# - 如何在 Gridview 页脚中添加 2 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1439071/
我是一名优秀的程序员,十分优秀!