<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listUDC.ascx.cs"
  Inherits="GMW.WebUserControls.mod_listUDC" %>
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
  OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
  DataKeyNames="UDC" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
  OnSorting="grView_Sorting" OnRowDataBound="grView_RowDataBound" PageSize="10">
  <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:LinkButton ID="btnReset" runat="server" OnClick="btnReset_Click" CssClass="btn btn-default btn-sm" Visible="true"><i class="fa fa-refresh"></i> <%: traduci("Reset") %></asp:LinkButton>
      </HeaderTemplate>
      <ItemTemplate>
        <asp:LinkButton ID="btnSelect" runat="server" CausesValidation="False" CommandName="Select" ToolTip='<%# traduci("Select") %>' CssClass="btn btn-default btn-sm btn-block p-0" Visible="true"><i class="fa fa-search" aria-hidden="true"></i></asp:LinkButton>
      </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField HeaderText="UDC" SortExpression="UDC">
      <ItemTemplate>
        <asp:Label ID="lblUDC" runat="server" Text='<%# Bind("UDC") %>' />
      </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField HeaderText="RagSociale" SortExpression="RagSociale">
      <ItemTemplate>
        <asp:Label ID="lblRagSociale" runat="server" Text='<%# Bind("RagSociale") %>' />
      </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField HeaderText="Particolare" SortExpression="Particolare">
      <ItemTemplate>
        <asp:Label ID="lblParticolare" runat="server" Text='<%# Bind("Particolare") %>' />
      </ItemTemplate>
    </asp:TemplateField>
  </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
  SelectMethod="getByFullUdc" TypeName="GMW_data.DS_magazzinoTableAdapters.v_UdcDetailTableAdapter"
  OnDataBinding="ods_DataBinding">
  <SelectParameters>
    <asp:SessionParameter Name="UDC" Type="String" SessionField="FullSearchValue" DefaultValue="UUU" />
    <asp:SessionParameter Name="CodCS" Type="String" SessionField="CodCS" DefaultValue="MM" />
  </SelectParameters>
</asp:ObjectDataSource>
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />&nbsp;&nbsp;
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />