<%@ Control Language="C#" AutoEventWireup="true" Inherits="NKC_WF.WebUserControls.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" CssClass="table table-striped table-sm">
      <SelectedRowStyle CssClass="info" />
      <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="AppData.selDataVoc"
      OldValuesParameterFormatString="original_{0}"
      FilterExpression="Lemma LIKE '%{0}%'">
      <FilterParameters>
        <asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="lemma_sel" />
      </FilterParameters>
    </asp:ObjectDataSource>
  </div>
</div>
