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

 

<!DOCTYPE html>

 

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

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

    <title>GridView Example 1</title>

</head>

<body bgcolor="#99ccff">

    <h3>Displaying data from the database in a GridView control.</h3>

    <h4>This GridView is dynamically bound to data retrieved from the database. <br />

        It automatically generates the columns by default (property: AutoGenerateColumns=True)</h4>

 

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

 

        <asp:GridView ID="gvProducts" runat="server" AutoGenerateColumns="true">

        </asp:GridView>

 

    </form>

</body>

</html>