<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridViewExample4.aspx.cs" Inherits="GridViews.GridViewExample4" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

    <title>GridView Example 4</title>

</head>

<body bgcolor="#99ccff">

   

    <h3>This GridView example demonstrates using a footer to display information.</h3>

 

    <form id="form1" runat="server">

 

        <asp:GridView ID="gvProducts" runat="server" AutoGenerateColumns="False" ShowFooter="True">

            <Columns>

                <asp:BoundField DataField="ProductNumber" HeaderText="Product Number" />

                <asp:BoundField DataField="Description" HeaderText="Description" />

                <asp:BoundField DataField="QOH" HeaderText="QOH" />

                <asp:BoundField DataField="Price" DataFormatString="{0:c}" HeaderText="Price" />

            </Columns>

        </asp:GridView>

   

    </form>

</body>

</html>