Torna al Thread
<asp:GridView ID="GridView1" runat="server" AllowSorting="true" Width="100%" OnRowDeleting="GridView1_RowDeleting"
OnRowDataBound="GridView1_RowDataBound" DataKeyNames="Id" PageSize="4" CssClass="lista"
GridLines="None" ForeColor="#333333" CellPadding="4"
AutoGenerateColumns="False" EnableViewState="False">
<footerstyle BackColor="#81ABBA" Font-Bold="True" ForeColor="White" />
<columns>
<asp:TemplateField HeaderText="Attività" >
<itemtemplate> <span class="Riga_Grid"> <%# Eval("Activity.Description")%> </span> </itemtemplate>
<itemstyle HorizontalAlign="Left" Width="40%" />
<headerstyle HorizontalAlign="Left" />
</asp:TemplateField>
<asp:BoundField DataField="Kcal" HeaderText="Kcal" SortExpression="Kcal" DataFormatString="{0:0,0}" HtmlEncode="false">
<itemstyle HorizontalAlign="Right" Width="15%" />
<headerstyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="Ore" HeaderText="Ore">
<itemstyle HorizontalAlign="Right" />
<headerstyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:BoundField DataField="Minuti" HeaderText="Minuti">
<itemstyle HorizontalAlign="Right" />
<headerstyle HorizontalAlign="Right" />
</asp:BoundField>
<asp:TemplateField InsertVisible="False" ShowHeader="False">
<itemtemplate>
<asp:ImageButton ID="btnDelAttivita" runat="server" CausesValidation="False" CommandName="Delete" ImageUrl="~/Images/cross.png" />
</itemtemplate>
</asp:TemplateField>
</columns>
<RowStyle BackColor="#EFF3FB" CssClass="Riga_Grid" />
<EditRowStyle BackColor="#81ABBA" />
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<pagerstyle BackColor="#81ABBA" ForeColor="White" HorizontalAlign="Center" />
<headerstyle BackColor="white" Font-Bold="True" ForeColor="#333333" />
<AlternatingRowStyle BackColor="White" />
</asp:GridView>