日期:2014-05-18  浏览次数:20398 次

datagird 问题
我真的不知道该把这个代码放哪     这个代码是用来控制Datagird2的  
<div       出库编号= "出库编号1 "       style= "TABLE-LAYOUT:fixed;           Z-INDEX:106;           LEFT:22px;       WIDTH:100px;           TOP:51px;       HEIGHT:221px ">      
<asp:DataGrid       id= "DBGrid "       runat= "server "       Height= "163px "       Width= "296px "       AutoGenerateColumns= "False ">      
<Columns>  
<asp:Panel   id= "Panel1 "   style= "Z-INDEX:101;LEFT:360px;OVERFLOW:auto;POSITION:absolute;TOP:280px "runat= "server "   Width= "72px "   Height= "48px "> Panel </asp:Panel>    
<asp:BoundColumn       DataField= "代号 "       HeaderText= "代号 ">      
<HeaderStyle       HorizontalAlign= "Center "> </HeaderStyle>      
<ItemStyle       Width= "60px "> </ItemStyle>      
</asp:BoundColumn>      
<asp:BoundColumn       DataField= "图样编号 "       HeaderText= "图样编号 ">      
<HeaderStyle       HorizontalAlign= "Center "> </HeaderStyle>      
<ItemStyle       Width= "60px "> </ItemStyle>      
</asp:BoundColumn>      
<asp:BoundColumn       HeaderText= "名称 "       DataField= "名称 ">      
<HeaderStyle       HorizontalAlign= "Center "> </HeaderStyle>      
<ItemStyle       Width= "60px "> </ItemStyle>      
</asp:BoundColumn>  
<asp:BoundColumn       DataField= "数量 "       HeaderText= "数量 ">      
<HeaderStyle       HorizontalAlign= "Center "> </HeaderStyle>      
<ItemStyle       Width= "60px "> </ItemStyle>      
</asp:BoundColumn>          
</Columns>      
</asp:DataGrid>      
</div>
请各位帮帮忙   复制出代码正确的位置吧  
这是我的前台代码
<%@   Page   language= "c# "   Codebehind= "yjck.aspx.cs "   AutoEventWireup= "false "   Inherits= "WebApplication3.WebForm2 "   %>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN "   >
<HTML>
<HEAD>
<title> WebForm2 </title>
<meta   content= "Microsoft   Visual   Studio   .NET   7.1 "   name= "GENERATOR ">
<meta   content= "C# "   name= "CODE_LANGUAGE ">
<meta   content= "JavaScript "   name= "vs_defaultClientScript ">
<meta   content= "http://sche