<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridViewExample10.aspx.cs" Inherits="GridViews.GridViewExample10" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>GridView Example 10</title>
</head>
<body bgcolor="#ffff99">
<h3>This GridView example
demonstrates binding a ListBox control, <br />
and using it
to display information in a GridView. </h3>
<h4>This example makes use of merging dataset data for the GridView to display.</h4>
<form id="form1" runat="server">
<asp:ListBox ID="lstProducts" runat="server" SelectionMode="Multiple">
</asp:ListBox>
<br /> <br />
<asp:Button ID="btnDisplay" runat="server" Text="Display Products" OnClick="btnDisplay_Click" />
<br /><br />
<asp:GridView ID="gvProducts" runat="server" CellPadding="4"
ForeColor="#333333" GridLines="None">
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
</form>
</body>
</html>