<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listImballi.ascx.cs"
    Inherits="GMW.WebUserControls.mod_listImballi" %>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
    OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
    DataKeyNames="CodImballo" DataSourceID="ods" 
    onpageindexchanged="grView_PageIndexChanged" onsorting="grView_Sorting">
    <RowStyle CssClass="ctrRowStyle" />
    <AlternatingRowStyle CssClass="ctrAltRowStyle" />
    <EditRowStyle CssClass="ctrEditRowStyle" />
    <SelectedRowStyle CssClass="ctrSelRowStyle" />
    <FooterStyle CssClass="ctrFooter" />
    <PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
    <EmptyDataRowStyle CssClass="ctrRowStyle" />
    <EmptyDataTemplate>
        <asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
    </EmptyDataTemplate>
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <HeaderTemplate>
                <asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click"
                    Visible="true" />
            </HeaderTemplate>
            <ItemTemplate>
                <asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
                    ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="CodImballo" SortExpression="CodImballo">
            <ItemTemplate>
                <asp:Label ID="lblCodImballo" runat="server" Text='<%# Bind("CodImballo") %>' />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="DescImballo" SortExpression="DescImballo">
            <ItemTemplate>
                <asp:Label ID="lblDescImballo" runat="server" Text='<%# Bind("DescImballo") %>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
    SelectMethod="getByCod" TypeName="GMW_data.DS_magazzinoTableAdapters.AnagImballiTableAdapter"
    OnDataBinding="ods_DataBinding">
    <SelectParameters>
        <asp:SessionParameter Name="CodImballo" Type="String" SessionField="FullSearchValue" DefaultValue="III" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />