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


    <asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="ItemID" DataSourceID="ods" AllowPaging="True" CssClass="table table-sm table-condensed table-striped" AllowSorting="True">
      <Columns>
        <asp:TemplateField HeaderText="Mat" SortExpression="MatID">
          <ItemTemplate>
            <asp:Label runat="server" ID="lblMatId" Text='<%# matByKey(Eval("MatID")) %>' />
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Code" SortExpression="ItemExtCode">
          <ItemTemplate>
            <asp:Label ID="Label2" runat="server" Text='<%# Eval("ItemExtCode") %>' />
          </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Desc" SortExpression="ItemDesc">
          <ItemTemplate>
            <asp:Label ID="Label1" runat="server" Text='<%# Eval("ItemDesc") %>' />
          </ItemTemplate>
        </asp:TemplateField>
      </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByOfflineOrder" TypeName="AppData.DS_AppTableAdapters.ItemListTableAdapter">
      <SelectParameters>
        <asp:ControlParameter ControlID="hfOffOrderId" DefaultValue="0" Name="OffOrdID" PropertyName="Value" Type="Int32" />
      </SelectParameters>
    </asp:ObjectDataSource>
  <asp:HiddenField runat="server" ID="hfOffOrderId" />