首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

datagird 有关问题

2012-01-06 
datagird 问题我真的不知道该把这个代码放哪这个代码是用来控制Datagird2的div出库编号 出库编号1 sty

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://schemas.microsoft.com/intellisense/ie5 "name= "vs_targetSchema ">
</HEAD>


<body   MS_POSITIONING= "GridLayout ">
<form   id= "Form1 "   method= "post "   runat= "server ">    
<FONT   face= "宋体 ">
<asp:textbox   id= "TB11 "   style= "Z-INDEX:   119;   LEFT:   304px;   POSITION:   absolute;   TOP:   488px "   runat= "server "
Width= "88px "> </asp:textbox> <asp:textbox   id= "TB10 "   style= "Z-INDEX:   118;   LEFT:   120px;   POSITION:   absolute;   TOP:   488px "   runat= "server "
Width= "104px "> </asp:textbox> <asp:label   id= "Label3 "   style= "Z-INDEX:   106;   LEFT:   40px;   POSITION:   absolute;   TOP:   424px "   runat= "server "> 出库编号 </asp:label> <asp:button   id= "Button1 "   style= "Z-INDEX:   101;   LEFT:   616px;   POSITION:   absolute;   TOP:   432px "   runat= "server "
Text= "添加 "> </asp:button> <asp:button   id= "Button4 "   style= "Z-INDEX:   102;   LEFT:   616px;   POSITION:   absolute;   TOP:   512px "   runat= "server "
Text= "关闭 "> </asp:button> <asp:button   id= "Button3 "   style= "Z-INDEX:   103;   LEFT:   616px;   POSITION:   absolute;   TOP:   472px "   runat= "server "
Text= "返回 "> </asp:button> <asp:textbox   id= "TB4 "   style= "Z-INDEX:   104;   LEFT:   304px;   POSITION:   absolute;   TOP:   424px "   runat= "server "
Width= "88px "   AutoPostBack= "True "> </asp:textbox> <asp:textbox   id= "TB3 "   style= "Z-INDEX:   105;   LEFT:   120px;   POSITION:   absolute;   TOP:   424px "   runat= "server "
Width= "104px "> </asp:textbox> <asp:label   id= "Label4 "   style= "Z-INDEX:   107;   LEFT:   248px;   POSITION:   absolute;   TOP:   424px "   runat= "server "> 代号 </asp:label> <asp:textbox   id= "TB5 "   style= "Z-INDEX:   108;   LEFT:   488px;   POSITION:   absolute;   TOP:   424px "   runat= "server "
Width= "88px "   AutoPostBack= "True "> </asp:textbox> <asp:label   id= "Label5 "   style= "Z-INDEX:   109;   LEFT:   408px;   POSITION:   absolute;   TOP:   424px "   runat= "server "
Width= "64px "> 图样编号 </asp:label> <asp:label   id= "Label6 "   style= "Z-INDEX:   110;   LEFT:   56px;   POSITION:   absolute;   TOP:   456px "   runat= "server "> 名称 </asp:label> <asp:textbox   id= "TB6 "   style= "Z-INDEX:   111;   LEFT:   120px;   POSITION:   absolute;   TOP:   456px "   runat= "server "
Width= "104px "> </asp:textbox> <asp:label   id= "Label7 "   style= "Z-INDEX:   112;   LEFT:   248px;   POSITION:   absolute;   TOP:   456px "   runat= "server "> 数量 </asp:label> <asp:textbox   id= "TB7 "   style= "Z-INDEX:   113;   LEFT:   304px;   POSITION:   absolute;   TOP:   456px "   runat= "server "


Width= "88px "> </asp:textbox> <asp:label   id= "Label9 "   style= "Z-INDEX:   114;   LEFT:   416px;   POSITION:   absolute;   TOP:   456px "   runat= "server "
Width= "48px "> 领出人 </asp:label> <asp:label   id= "Label10 "   style= "Z-INDEX:   115;   LEFT:   56px;   POSITION:   absolute;   TOP:   488px "   runat= "server "> 备注 </asp:label> <asp:label   id= "Label11 "   style= "Z-INDEX:   116;   LEFT:   240px;   POSITION:   absolute;   TOP:   488px "   runat= "server "> 登记人 </asp:label> <asp:textbox   id= "TB9 "   style= "Z-INDEX:   117;   LEFT:   488px;   POSITION:   absolute;   TOP:   456px "   runat= "server "
Width= "88px "> </asp:textbox> <asp:textbox   id= "TextBox1 "   style= "Z-INDEX:   120;   LEFT:   216px;   POSITION:   absolute;   TOP:   520px "
runat= "server "   Width= "104px "   AutoPostBack= "True "   Height= "18px "> </asp:textbox> <asp:label   id= "Label13 "   style= "Z-INDEX:   121;   LEFT:   56px;   POSITION:   absolute;   TOP:   520px "   runat= "server "
Width= "144px "> 出库编号或代号查询 </asp:label> <asp:datagrid   id= "DataGrid1 "   style= "Z-INDEX:   122;   LEFT:   24px;   POSITION:   absolute;   TOP:   8px "   runat= "server "
Width= "950px "   Height= "392px "   AutoGenerateColumns= "False "   AllowPaging= "True "   AllowCustomPaging= "True "   DataKeyField= "出库编号 ">
<Columns>
<asp:BoundColumn   DataField= "出库编号 "   HeaderText= "出库编号 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "代号 "   HeaderText= "代号 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "图样编号 "   HeaderText= "图样编号 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "名称 "   HeaderText= "名称 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "数量 "   HeaderText= "数量 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "出库日期 "   HeaderText= "出库日期 "DataFormatString= "{0:d} "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "领出人 "   HeaderText= "领出人 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "备注 "   HeaderText= "备注 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "登记人 "   HeaderText= "登记人 "> </asp:BoundColumn>
<asp:EditCommandColumn   ButtonType= "LinkButton "   UpdateText= "确定 "   CancelText= "取消 "   EditText= "修改 "> </asp:EditCommandColumn>
<asp:ButtonColumn   Text= "删除 "   CommandName= "Delete "> </asp:ButtonColumn>
</Columns>
</asp:datagrid> <asp:datagrid   id= "DataGrid2 "   style= "Z-INDEX:   123;   LEFT:   672px;   POSITION:   absolute;   TOP:   416px "
runat= "server "   Width= "294px "   Height= "136px "   AutoGenerateColumns= "False "   AllowCustomPaging= "True "   AllowSorting= "True ">


<Columns>
<asp:BoundColumn   DataField= "代号 "   HeaderText= "代号 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "图样编号 "   HeaderText= "图样编号 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "名称 "   HeaderText= "名称 "> </asp:BoundColumn>
<asp:BoundColumn   DataField= "数量 "   HeaderText= "数量 "> </asp:BoundColumn>
</Columns>
</asp:datagrid> <asp:dropdownlist   id=DropDownList1   style= "Z-INDEX:   124;   LEFT:   408px;   POSITION:   absolute;   TOP:   568px "   runat= "server "   AutoPostBack= "True "   DataTextField= "代号 "   DataMember= "表 "   DataSource= " <%#   dataSet41   %> ">
<asp:ListItem   Value= "代号 "   Selected= "True "> 代号 </asp:ListItem>
<asp:ListItem   Value= "图样编号 "> 图样编号 </asp:ListItem>
<asp:ListItem   Value= "名称 "> 名称 </asp:ListItem>
</Columns>                                        
</asp:dropdownlist> <asp:textbox   id= "TextBox2 "   style= "Z-INDEX:   125;   LEFT:   504px;   POSITION:   absolute;   TOP:   568px "
runat= "server "   AutoPostBack= "True "> </asp:textbox> <asp:label   id= "Label1 "   style= "Z-INDEX:   126;   LEFT:   288px;   POSITION:   absolute;   TOP:   568px "   runat= "server "> 库存表的查找 </asp:label> </FONT> </form>
</body>
</HTML>


[解决办法]
怎么不明白楼主什么意思啊
[解决办法]
晕了,只能帮你顶一下了
[解决办法]
你本来就有一个datagrid2啊,
> <asp:datagrid id= "DataGrid2 " style= "Z-INDEX: 123; LEFT: 672px; POSITION: absolute; TOP: 416px "
runat= "server " Width= "294px " Height= "136px " AutoGenerateColumns= "False " AllowCustomPaging= "True " AllowSorting= "True ">
<Columns>
<asp:BoundColumn DataField= "代号 " HeaderText= "代号 "> </asp:BoundColumn>
<asp:BoundColumn DataField= "图样编号 " HeaderText= "图样编号 "> </asp:BoundColumn>
<asp:BoundColumn DataField= "名称 " HeaderText= "名称 "> </asp:BoundColumn>
<asp:BoundColumn DataField= "数量 " HeaderText= "数量 "> </asp:BoundColumn>
</Columns>
</asp:datagrid>


======
你把前面那段代码把这段代码替换就OK啦.
[解决办法]
做虾米啊?
[解决办法]
看的我头都晕了.你也没提出哪里出个问题
[解决办法]
问题不明
[解决办法]
up

热点排行