Dynamic Gridview Colum如何设置One Specfic列Grand Total [英] Dynamic Gridview Colum how to set One specfic column Grand Total

查看:48
本文介绍了Dynamic Gridview Colum如何设置One Specfic列Grand Total的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





这是我的代码...



我想用动态gridview专栏。我想要一个特殊的colum colum总计?



Hi,

This is my code...

I want use dynamic gridview column. I want one specfic colum grand total?

<asp:GridView ID="SalesGrid" runat="server" AllowPaging="true"

        BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px"

        CaptionAlign="Top" CellPadding="4"

        style="z-index: 1; left: 99px; top: 413px; position: absolute; height: 313px; width: 554px; bottom: 0px;"

        GridLines="Horizontal" onrowdatabound="GridView1_RowDataBound"

        onpageindexchanging="GridView1_PageIndexChanging"

        ondatabound="SalesGrid_DataBound" Visible="False"

        ShowFooter="true"

        onrowcreated="SalesGrid_RowCreated">

        <EditRowStyle Wrap="False" />
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <HeaderStyle BackColor="#336666" ForeColor="White" Font-Bold="True" />
        <PagerStyle ForeColor="White" BackColor="#336666" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#333333" Wrap="False" />
        <SelectedRowStyle BackColor="#339966" ForeColor="White" Font-Bold="true" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#487575" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#275353" />
    </asp:GridView>

推荐答案

看看这里:

教程15:显示摘要信息GridView的页脚 [ ^ ]

ASP.NET 2.0的GridView示例:在页脚中显示摘要数据 [ ^ ]

Matt Berseth:在ASP.NET GridView中显示摘要数据 [ ^ ]

使用计算列(VB) [ ^ ]

在DataGrid中显示总和 [ ^ ]



它应该足够开始;)
Have a look here:
Tutorial 15: Displaying Summary Information in the GridView's Footer[^]
GridView Examples for ASP.NET 2.0: Displaying Summary Data in the Footer[^]
Matt Berseth: Displaying summary data in an ASP.NET GridView[^]
Working with Computed Columns (VB)[^]
Displaying Sum Total in a DataGrid[^]

It should be enough for start ;)


这篇关于Dynamic Gridview Colum如何设置One Specfic列Grand Total的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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