新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 帮助大家解决各类计算机故障,比如:安装双系统,ADSL上网故障,病毒防火墙,删除3721、木马,上网故障,播放器故障、电脑黑屏、注册表修改等。
    [返回] 计算机科学论坛休息区『 网友互助 』 → 如何将datagrid中日期和主题放入datalist中的首行[求助] 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 4425 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 如何将datagrid中日期和主题放入datalist中的首行[求助] 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     qiokaka 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:56
      门派:XML.ORG.CN
      注册:2007/11/22

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给qiokaka发送一个短消息 把qiokaka加入好友 查看qiokaka的个人资料 搜索qiokaka在『 网友互助 』的所有贴子 引用回复这个贴子 回复这个贴子 查看qiokaka的博客楼主
    发贴心情 如何将datagrid中日期和主题放入datalist中的首行[求助]

    求助]如何将datagrid中日期和主题放入datalist中的首行
    原码如下:
    <HTML>
    <HEAD>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <table class="table">
    <TR class="TOP">
    <td align="center">行程活动列表
    </td>
    </TR>
    </table>
    <table class="table" width="98%">
    <TR>
    <td><asp:datagrid id="dgRAList" runat="server" AutoGenerateColumns="False" BorderWidth="1px" BackColor="Window"
    BorderColor="White" BorderStyle="Solid" HorizontalAlign="Justify" Width="100%" AllowPaging="True"
    PageSize="5">
    <ItemStyle ForeColor="Black"></ItemStyle>
    <HeaderStyle ForeColor="White" BackColor="CornflowerBlue"></HeaderStyle>
    <Columns>
    <asp:TemplateColumn>
    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
    <ItemStyle Width="50px"></ItemStyle>
    <ItemTemplate>
    <asp:CheckBox Runat="server" ID="chkSelected"></asp:CheckBox>
    </ItemTemplate>
    </asp:TemplateColumn>
    <asp:BoundColumn Visible="False" DataField="Route_ID" HeaderText="Route_ID"></asp:BoundColumn>
    <asp:BoundColumn Visible="False" DataField="Route_Topic" HeaderText="Route_Topic"></asp:BoundColumn>
    <asp:TemplateColumn HeaderText="日期">
    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
    <ItemStyle Width="60px"></ItemStyle>
    <ItemTemplate>
                                  <asp:TextBox id=txtDate Text='<%# DataBinder.Eval(Container.DataItem, "Route_Date","{0:d}") %>' Runat="server" ReadOnly="True">
                                  </asp:TextBox>
                               </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="主题">
                               <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                               <ItemStyle Width="60px"></ItemStyle>
                               <ItemTemplate>
                                  <igcmbo:webcombo id="wcTopic" runat="server" Width="100px" BorderStyle="Solid" BorderColor="Gainsboro"
                                     BackColor="White" BorderWidth="1px" Height="20px" Font-Size="8pt" DisplayValueColumn="State"
                                     Font-Names="Verdana" Editable="True" SelBackColor="DarkSeaGreen" ForeColor="Black" SelForeColor="51, 51, 51"
                                     Version="2.00" DataTextField="State">
                                     <Columns>
                                        <igtbl:UltraGridColumn HeaderText="主题" Key="Normal_Code" BaseColumnName="Normal_Code">
                                           <Footer Key="Normal_Code"></Footer>
                                           <Header Key="Normal_Code" Caption="主题"></Header>
                                        </igtbl:UltraGridColumn>
                                     </Columns>
                                     <DropDownLayout DropdownWidth="125px" BorderCollapse="Separate" AllowColSizing="Free" RowHeightDefault="20px"
                                        HeaderClickAction="Select" RowSizing="Free" DropdownHeight="225px" TableLayout="Fixed" StationaryMargins="Header"
                                        AllowRowSizing="Free">
                                        <RowStyle BorderWidth="1px" Font-Size="8pt" Font-Names="Verdana" BorderColor="White" BorderStyle="Solid"
                                           HorizontalAlign="Left" BackColor="Silver">
                                           <Padding Left="5px" Right="5px"></Padding>
                                        </RowStyle>
                                        <SelectedRowStyle ForeColor="White" BackColor="SeaGreen"></SelectedRowStyle>
                                        <HeaderStyle VerticalAlign="Middle" Font-Size="8pt" Font-Names="Verdana" BorderStyle="Solid"
                                           HorizontalAlign="Left" ForeColor="#333333" BackColor="DarkSeaGreen">
                                           <Padding Left="3px" Right="3px"></Padding>
                                           <BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px" ColorLeft="White"></BorderDetails>
                                        </HeaderStyle>
                                        <RowAlternateStyle BackColor="#E9E9F7"></RowAlternateStyle>
                                        <FrameStyle Width="125px" Cursor="Default" BorderWidth="2px" Font-Size="10pt" Font-Names="Verdana"
                                           BorderStyle="Ridge" BackColor="Silver" Height="225px"></FrameStyle>
                                     </DropDownLayout>
                                     <ExpandEffects ShadowColor="LightGray"></ExpandEffects>
                                  </igcmbo:webcombo>
                               </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn Visible="False" HeaderText="编辑">
                               <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                               <ItemStyle Width="40px"></ItemStyle>
                               <ItemTemplate>
                                  <INPUT id="btnEdit" style="WIDTH: 40px" onclick="topicDisplay();" type="button" value="编辑">
                               </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="内容">
                               <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                               <HeaderTemplate>
                                  <FONT face="宋体"></FONT>
                               </HeaderTemplate>
                               <ItemTemplate>
                                  <asp:DataList id="dlRouteDetail" runat="server" Width="100%" RepeatColumns="1" RepeatDirection="Horizontal">
                                     <ItemTemplate>
                                        <table Width="100%">
                                           <tr>
                                              <TD width="60">抵离</TD>
                                              <TD height="40">
                                                 <asp:HyperLink Runat="server" ID="lbAccept" NavigateUrl="Acceptlist.aspx"></asp:HyperLink></TD>
                                              <TD width="60">
                                                 <asp:HyperLink Runat="server" ID="hlAcceptDetail" NavigateUrl="AcceptEdit.aspx">新增</asp:HyperLink></TD>
                                           </tr>
                                           <TR>
                                              <TD>住宿</TD>
                                              <TD height="40">
                                                 <asp:HyperLink Runat="server" ID="lbLodgins" NavigateUrl="LodgingsList.aspx"></asp:HyperLink>
                                              </TD>
                                              <TD>
                                                 <asp:HyperLink Runat="server" ID="hlLodginsDetail" NavigateUrl="LogingsEdit.aspx">新增</asp:HyperLink></TD>
                                           </TR>
                                           <TR>
                                              <TD>用餐</TD>
                                              <TD height="40">早    
                                                 <asp:HyperLink Runat="server" ID="lbDingsZao"></asp:HyperLink><br>
                                                 午    
                                                 <asp:HyperLink Runat="server" ID="lbDingsWu"></asp:HyperLink><br>
                                                 晚    
                                                 <asp:HyperLink Runat="server" ID="lbDingsWan"></asp:HyperLink></TD>
                                              <TD>
                                                 <asp:HyperLink Runat="server" ID="hlDingsDetail" NavigateUrl="DinesEdit.aspx">新增</asp:HyperLink></TD>
                                           </TR>
                                           <TR>
                                              <TD>景点节目</TD>
                                              <TD height="40">
                                                 <asp:HyperLink Runat="server" ID="lbSight"></asp:HyperLink></TD>
                                              <TD>
                                                 <asp:HyperLink Runat="server" ID="hlSightDetail" NavigateUrl="jingdianAdd1.aspx">新增</asp:HyperLink></TD>
                                           </TR>
                                           <TR>
                                              <TD>用车</TD>
                                              <TD height="40">
                                                 <asp:HyperLink Runat="server" ID="lbVehicle"></asp:HyperLink></TD>
                                              <TD>
                                                 <asp:HyperLink Runat="server" ID="hlVehicleDetail" NavigateUrl="VehiclesListAddOrMidfiy.aspx">新增</asp:HyperLink></TD>
                                           </TR>
                                           <TR>
                                              <TD>导游</TD>
                                              <TD height="40">
                                                 <asp:HyperLink Runat="server" ID="lbTourGuide"></asp:HyperLink></TD>
                                              <TD>
                                                 <asp:HyperLink Runat="server" ID="hlTourGuideDetail" NavigateUrl="TourGuideEdit.aspx">新增</asp:HyperLink></TD>
                                           </TR>
                                           <TR>
                                              <TD>其他</TD>
                                              <TD height="40">
                                                 <asp:HyperLink Runat="server" ID="lbOther"></asp:HyperLink></TD>
                                              <TD>
                                                 <asp:HyperLink Runat="server" ID="hlOtherDetail" NavigateUrl="OtherListAddOrMidfiy.aspx">新增</asp:HyperLink></TD>
                                           </TR>
                                        </table>
                                     </ItemTemplate>
                                  </asp:DataList>
                               </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn Visible="False" DataField="RouteDate1" HeaderText="RouteDate1"></asp:BoundColumn>
                         </Columns>
                         <PagerStyle HorizontalAlign="Right" ForeColor="Black" Mode="NumericPages"></PagerStyle>
                      </asp:datagrid></td>
                </TR>
                <tr class="bottom" onkeydown="if (event.keyCode==13)event.keyCode=9;">
                   <td><asp:Button CssClass="button" id="btnBanchAdd" text="批量新增" runat="server"></asp:Button>
                      <asp:Button CssClass="button" id="btnDeLSelected" text="删除所选" runat="server"></asp:Button>
                      <asp:Button CssClass="button" id="btnSave" text="保存" runat="server" Width="72" Height="22"></asp:Button><asp:button id="btnCancel" runat="server" Width="70px" CssClass="button" BackColor="White" Text="取消"></asp:button>
                   </td>
                </tr>
             </table>
             <INPUT id="ButtonShow" style="VISIBILITY: hidden" type="button" value="ButtonShow" name="ButtonShow"
                runat="server"><INPUT id="hidTeamID" type="hidden" size="6" name="hidTeamID" runat="server">
          </form>
       </body>
    </HTML>

       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/11/22 11:24:00
     
     qiokaka 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:56
      门派:XML.ORG.CN
      注册:2007/11/22

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给qiokaka发送一个短消息 把qiokaka加入好友 查看qiokaka的个人资料 搜索qiokaka在『 网友互助 』的所有贴子 引用回复这个贴子 回复这个贴子 查看qiokaka的博客2
    发贴心情 
    在线等帮助
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2007/11/22 12:04:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 网友互助 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/11/25 0:44:28

    本主题贴数2,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    171.875ms