<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="eDocument.Server.Administrator.VaultAdmin.List"  MasterPageFile="~/Site.Master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"/>
    <asp:GridView runat="server" ID="grid"
        DataKeyNames="BoxId" 
        ItemType="eDocument.Server.Administrator.VaultAdmin.VaultBox"
        AutoGenerateEditButton="False"
        SelectMethod="GetData"
        AutoGenerateColumns="false">
        <Columns>
            <asp:DynamicField DataField="BoxId" Visible="False" />
            <asp:DynamicField DataField="BoxName" />
            <asp:DynamicField DataField="VapourName" />
            <asp:DynamicField DataField="UnbundledCount" />
            <asp:DynamicField DataField="RejectedCount" />
            <asp:TemplateField HeaderText="Detaljer">
                <ItemTemplate>
                    <asp:LinkButton runat="server" CommandName="Action" id="btnSelectBox" Text="Velg" OnCommand="btnSelectBox_OnCommand" CommandArgument='<%#Bind("BoxId") %>'>Detaljer</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
</asp:Content>