<%@ Page Title="类别汇总" Language="C#"   MasterPageFile="~/Admin/Admin.Master"   AutoEventWireup="true" CodeBehind="CategoryTable.aspx.cs" Inherits="Helpdesk.Admin.CategoryTable" %>
 

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    
    
       <div class="result-wrap">


    <asp:GridView runat="server"  EnableViewState="false"
     ID="gv_cat1"  
     AutoGenerateColumns="false" 
     CellPadding="0"  CellSpacing="0"  Width="850px"
     >

    <HeaderStyle  BackColor="#000" ForeColor="#ffffff" Height="40px" />
    <RowStyle  VerticalAlign="Top" />
    <Columns>
    <asp:BoundField DataField="catname"  ItemStyle-Font-Bold="true" HeaderText="大类"/> 

    <asp:TemplateField>
      <HeaderTemplate>中类与小类</HeaderTemplate>
      <ItemTemplate>
         
        <asp:GridView EnableViewState="false" 
          BorderWidth="0px" runat="server" ID="gv_cat2" Width="100%" 
          CellPadding="0"  CellSpacing="0" 
          ShowHeader="false" 
          DataSource=<%#GetCat(Eval("id")) %> 
          AutoGenerateColumns="false">
           
          <RowStyle  VerticalAlign="Top" /> 
           <Columns>
          <asp:BoundField DataField="catname"    ItemStyle-Width="200px" />
            

            <asp:TemplateField>
            
            <ItemTemplate>
            
            
              <asp:GridView EnableViewState="false"
               Width="100%" CellPadding="0" CellSpacing="0" runat="server" ID="gv_cat3" 
               BorderWidth="0px" ShowHeader="false"   AutoGenerateColumns="false"  
               DataSource=<%#GetCat(Eval("id")) %>  >
               
               <Columns>
                 <asp:BoundField DataField="catname"  HeaderText="小类"  ItemStyle-Width="200px" /> 
               </Columns>
                 
              
              
              </asp:GridView> 
            
            
            </ItemTemplate>
            </asp:TemplateField> 
        
        </Columns> 
        
        </asp:GridView> 
     
     </ItemTemplate>  
    
    </asp:TemplateField>
    </Columns> 
    </asp:GridView>
    </div>

   
</asp:Content>
