<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ContactGrid.ascx.vb" Inherits="Sitefinity_UserControls_ContactGrid_ContactGrid" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="id" DataSourceID="SqlDataSource1" CellPadding="4"
ForeColor="#333333" GridLines="None">
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:BoundField DataField="FullName" HeaderText="Employee Name" ReadOnly="True"
SortExpression="FullName" />
<asp:BoundField DataField="title" HeaderText="Title" SortExpression="title" />
<asp:BoundField DataField="phoneNumber" HeaderText="Phone Number"
SortExpression="phoneNumber" />
<asp:CommandField SelectText="Send Message" ShowSelectButton="True"
HeaderText="Email" />
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#014686" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT [id], [FullName], [title], [phoneNumber] FROM [emailView] ORDER BY [FullName]">
</asp:SqlDataSource> |