<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ErrorsLog.ascx.cs" Inherits="NKC_WF.WebUserControls.cmp_ErrorsLog" %>
<%@ Register Src="~/WebUserControls/cmp_errDescr.ascx" TagPrefix="uc1" TagName="cmp_errDescr" %>


<asp:GridView ID="grView" runat="server" AutoGenerateColumns="False" DataKeyNames="ErrID" DataSourceID="ods" CssClass="table table-striped table-condensed table-sm" AllowSorting="True">
    <Columns>
        <asp:BoundField DataField="ErrType" HeaderText="Type" SortExpression="ErrType" />
        <asp:BoundField DataField="ParentUid" HeaderText="PUID" SortExpression="ParentUid" />
        <asp:BoundField DataField="Uid" HeaderText="UID" SortExpression="Uid" />
        <%--<asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />--%>
        <asp:TemplateField HeaderText="Description" SortExpression="Description">
            <ItemTemplate>
                <uc1:cmp_errDescr runat="server" ID="cmp_errDescr" ErrType='<%# Eval("ErrType") %>' Description='<%# Eval("Description") %>' />
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByParent" TypeName="AppData.DS_AppTableAdapters.ErrorsLogTableAdapter">
    <SelectParameters>
        <asp:Parameter DefaultValue="" Name="ErrType" Type="String" />
        <asp:ControlParameter ControlID="hfPuid" DefaultValue="#" Name="ParentUid" PropertyName="Value" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:HiddenField ID="hfPuid" runat="server" />
