ASPX page :
<asp:GridView ID="GridView1" runat="server" DataKeyNames="AdultID,ChildID"
AutoGenerateColumns="False" BackColor="White" BorderColor="#CC9966"
BorderStyle="None" BorderWidth="1px" CellPadding="4"
onrowcommand="GridView1_RowCommand">
<Columns>
<asp:BoundField DataField="AdultID" HeaderText="Adult ID" />
<asp:BoundField DataField="CompanyName" HeaderText="Company" />
<asp:BoundField DataField="ContactName" HeaderText="Name" />
<asp:BoundField DataField="City" HeaderText="city" />
<asp:BoundField DataField="Country" HeaderText="Country" />
<asp:ButtonField HeaderText="Edit Entry" ButtonType="Button" CommandName="Edit" Text="Edit" />
<asp:ButtonField HeaderText="Delete Entry" ButtonType="Button" CommandName="Delete" Text="Delete" />
</Columns>
<FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
<HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
<PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
<RowStyle BackColor="White" ForeColor="#330099" />
<SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
<SortedAscendingCellStyle BackColor="#FEFCEB" />
<SortedAscendingHeaderStyle BackColor="#AF0101" />
<SortedDescendingCellStyle BackColor="#F6F0C0" />
<SortedDescendingHeaderStyle BackColor="#7E0000" />
</asp:GridView>
No comments:
Post a Comment