gpt4 book ai didi

c# - 如何在 Gridview 页脚中添加 2 行

转载 作者:太空狗 更新时间:2023-10-30 00:59:04 30 4
gpt4 key购买 nike

我正在使用网格来显示潜在客户数量。因为我必须显示 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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com