<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_searchResults.ascx.cs"
    Inherits="GMW_Term.WebUserControls.mod_searchResults" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div id="smallGrid">
    <asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
        OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
        Width="90%" DataKeyNames="tipo,valore" DataSourceID="ods" OnRowUpdating="grView_RowUpdating" Font-Size="X-Small">
        <RowStyle CssClass="ctrRowStyle" />
        <AlternatingRowStyle CssClass="ctrAltRowStyle" />
        <EditRowStyle CssClass="ctrEditRowStyle" />
        <SelectedRowStyle CssClass="ctrSelRowStyle" />
        <FooterStyle CssClass="ctrFooter" />
        <PagerStyle CssClass="ctrHeaderPagerMini" 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 HeaderText="Tipo" SortExpression="Tipo">
                <ItemTemplate>
                    <asp:ImageButton runat="server" ID="imgCodTipo" ImageUrl='<%# pathImgTipo(Eval("Tipo")) %>'
                        CausesValidation="False" CommandArgument='<%# Eval("Tipo") %>' OnClick="imgAzioneLista_Click"
                        CommandName="Update" ToolTip='<%# tooltipTipo(Eval("Tipo")) %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="label" SortExpression="label">
                <ItemTemplate>
                    <b>
                        <asp:Label ID="lbllabel" runat="server" Text='<%# Eval("label") %>' /></b>
                    <div style="font-size: x-small;">
                        <asp:Label ID="lblDesc" runat="server" Text='<%# descOggetto(Eval("tipo"),Eval("valore")) %>' />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
   <%-- <asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />&nbsp;&nbsp;
    <asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />--%>
    <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}"
        SelectMethod="GetData" TypeName="GMW_data.DS_UtilityTableAdapters.stp_ricercaFullTerminalinoTableAdapter">
        <SelectParameters>
            <asp:SessionParameter Name="txtSearch" SessionField="searchTerm" Type="String" DefaultValue="*" />
        </SelectParameters>
    </asp:ObjectDataSource>
</div>
