Vous êtes sur la page 1sur 6

Bluepoint Technologies S.A.C.

Emotions
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master"
AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="GridViewOcultarBotones._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">



<asp:GridView ID="GrillaCategoria" runat="server" AutoGenerateColumns="False"
BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
CellPadding="3" ForeColor="Black" GridLines="Vertical" AllowPaging="True"
onpageindexchanging="gvProducts_PageIndexChanging"
onrowcommand="gvProducts_RowCommand"
onrowdatabound="gvProducts_RowDataBound"
onrowdeleting="gvProducts_RowDeleting" onrowediting="gvProducts_RowEditing">
<AlternatingRowStyle BackColor="#CCCCCC" />
<Columns>
<asp:ButtonField HeaderText="Order" Text="Order" CommandName="Order" />
<asp:TemplateField HeaderText="Discontinued">
<ItemTemplate>
<asp:Image ID="imgDiscontinued" runat="server"
CausesValidation="false"
ImageUrl="~/Images/Discontinued.gif" Text="Order"
Width="25" Height="25" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="ProductID" HeaderText="ID" />
<asp:BoundField DataField="ProductName" HeaderText="Name " />
<asp:TemplateField HeaderText="Supplier">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,
"Supplier.CompanyName")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Category">
<ItemTemplate>
<asp:Label ID="Label2" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,
"Category.CategoryName")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="UnitsInStock" HeaderText="Units In Stock" />
<asp:TemplateField HeaderText="Editar">
<ItemTemplate>
<asp:ImageButton ID="imgEdit" runat="server"
CausesValidation="false" CommandName="Edit"
ImageUrl="~/Images/edit.gif" Text="Order" Width="25"
Height="25" />
<asp:ImageButton ID="imgDelete" runat="server"
CausesValidation="false" CommandName="Delete"
ImageUrl="~/Images/delete.gif" Text="Order" Width="25"
Height="26" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center"
/>
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
<SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#808080" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#383838" />
</asp:GridView>



</asp:Content>

<!--
<asp:GridView ID="GrillaCategoria" runat="server" AutoGenerateColumns="False"
BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px"
CellPadding="3" ForeColor="Black" GridLines="Vertical" AllowPaging="True"
onpageindexchanging="gvProducts_PageIndexChanging"
onrowcommand="GrillaCategoria_RowCommand"
onrowdatabound="GrillaCategoria_RowDataBound"
onrowdeleting="GrillaCategoria_RowDeleting"
onrowediting="GrillaCategoria_RowEditing">
<AlternatingRowStyle BackColor="#CCCCCC" />
<Columns>
<asp:ButtonField HeaderText="Order" Text="Order" CommandName="Order" />
<asp:TemplateField HeaderText="Discontinued">
<ItemTemplate>
<asp:Image ID="imgDiscontinued" runat="server"
CausesValidation="false"
ImageUrl="~/Iconos/Edita.ico" Text="Order" Width="25"
Height="25" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:BoundField DataField="ProductID" HeaderText="ID" />
<asp:BoundField DataField="ProductName" HeaderText="Name " />

<!--<asp:TemplateField HeaderText="Supplier">
<ItemTemplate>
<asp:Label ID="Label1" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,
"Supplier.CompanyName")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Category">
<ItemTemplate>
<asp:Label ID="Label2" runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,
"Category.CategoryName")%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
-->

<!-- <asp:BoundField DataField="UnitsInStock" HeaderText="Units In Stock"
/>
<asp:TemplateField HeaderText="Editar">
<ItemTemplate>
<asp:ImageButton ID="imgEdit" runat="server"
CausesValidation="false" CommandName="Edit"
ImageUrl="~/Iconos/edita.ico" Text="Order" Width="25"
Height="25" />
<!--<asp:ImageButton ID="imgDelete" runat="server"
CausesValidation="false" CommandName="Delete"
ImageUrl="~/Images/delete.gif" Text="Order" Width="25"
Height="26" />-->
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#CCCCCC" />
<HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center"
/>
<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />


-->

<!-- <SortedAscendingCellStyle BackColor="#F1F1F1" />
<SortedAscendingHeaderStyle BackColor="#808080" />
<SortedDescendingCellStyle BackColor="#CAC9C9" />
<SortedDescendingHeaderStyle BackColor="#383838" /> -->

</asp:GridView>-->