<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_listDtx.ascx.cs" Inherits="GMW.WebUserControls.mod_listDtx" %>
<div class="row">
    <div class="col-sm-12">
        <asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" OnDataBound="grView_DataBound" DataKeyNames="DataMatrix,CodStato" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged" OnSorting="grView_Sorting" OnRowDataBound="grView_RowDataBound" Width="100%">
            <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:BoundField DataField="CodStato" HeaderText="CodStato" ReadOnly="True" SortExpression="CodStato" />
                <asp:TemplateField HeaderText="UDC" SortExpression="UDC">
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="hlUDC" NavigateUrl='<%# string.Format("~/SearchMag.aspx?search={0}",Eval("UDC")) %>'><i class="fa fa-search"></i> <%# Eval("UDC") %></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="data" SortExpression="DataOra">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("DataOra","{0:dd/MM/yy HH:mm}") %>' ToolTip='<%# Eval("CodSoggetto") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="getByDtx" TypeName="GMW_data.DS_DataMatrixTableAdapters.Dtx2UDCTableAdapter"
            OnDataBinding="ods_DataBinding">
            <SelectParameters>
                <asp:SessionParameter Name="DataMatrix" Type="String" SessionField="FullSearchValue" DefaultValue="0" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />
        <br />
        <asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />

    </div>
</div>
