<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_lemmiVocab" CodeBehind="mod_lemmiVocab.ascx.cs" %>

<div class="row" style="font-size: 8pt;">
    <div class="col-sm-12">
        <asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
            DataKeyNames="Lingua,Lemma" DataSourceID="ods" OnDataBound="grView_DataBound">
           <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 HeaderText="Lingua" SortExpression="Lingua">
                    <EditItemTemplate>
                        <asp:Label ID="TextBox0" runat="server" Text='<%# Eval("Lingua") %>' />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%# Bind("Lingua") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Lemma" SortExpression="Lemma" Visible="false">
                    <EditItemTemplate>
                        <asp:Label ID="TextBox2" runat="server" Text='<%# Eval("Lemma") %>' />
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("Lemma") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Traduzione" SortExpression="Traduzione">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Traduzione") %>' Width="500px"
                            TextMode="MultiLine"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("Traduzione") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />
        <asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getVocabolario" TypeName="GMW_data.selDataVoc"
            OldValuesParameterFormatString="original_{0}"
            FilterExpression="Lemma LIKE '%{0}%'">
            <FilterParameters>
                <asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="lemma_sel" />
            </FilterParameters>
        </asp:ObjectDataSource>
    </div>
</div>
