<tr><asp:Repeater ID="rptOfBrowerInfo" runat="server" >
    <HeaderTemplate>
    <table width="85%" border="0" cellspacing="0" cellpadding="0" class="msgtable" align="center" >
    <tr>
    <th>序号</th>
    <th>姓名</th>
    <th>身份证号</th>
     <th>抵押信息</th>
      <th>贷款金额</th>
       <th>目前剩余贷款</th>
       <th>本次转让债权价值</th>
       <th>须支付对价</th>
       <th>借款用途</th>
       <th>还款日期</th>
       <th>预计债权收益率(年)</th>
    </tr>
    </HeaderTemplate>
    <ItemTemplate>
    <tr >
     <td>

<%#

this.rptOfBrowerInfo.Items.Count

+

1%>
    <td><asp:Label ID="lblName" runat="server" Text=<%#Eval("CustomerName") %>></asp:Label></td>
    <td><asp:Label ID="lblNO" runat="server" Text=<%#Eval("IdNumber") %>></asp:Label></td>
    <td id="PrimayKey"><asp:Label ID="lblDiYa" runat="server" Text=<%#Eval("MortgageDetail") %>></asp:Label></td>
    <td><asp:Literal ID="lblLoan" runat="server" Text=<%#Eval("LoanMoney") %>></asp:Literal></td>
    <td><asp:Label ID="lblThisRemainMoney" data=<%#Eval("RemainMoney") %> runat="server" Text=<%#Eval("RemainMoney") %>></asp:Label></td>
    <td ><asp:Label runat="server" Id="zhaiquan" Text=<%#Eval("BorrowMoney") %> /></td>
    <td><asp:Label ID="test" runat="server" Text=<%#Eval("BorrowMoney") %> ></asp:Label></td>
    <td><asp:Label ID="lblUseBorrow" Text=<%#Eval("UseBorrow") %> runat="server"></asp:Label></td>
    <td><asp:Label ID="lblBackDate" Text=<%#Eval("BackDate") %> runat="server"></asp:Label></td>
    <td><asp:Label ID="lblYieldMoney" Text=<%#Eval("YieldMoney") %> runat="server"></asp:Label></td>
    </tr>
    </ItemTemplate>
    <FooterTemplate>
    </table>
    </FooterTemplate>
    </asp:Repeater>

<asp:GridView ID="HT_LoanInformationGrid" runat="server" BorderWidth="0px"
           GridLines="None" ShowFooter="true"  CssClass="msgtable"
                      Width="100%" AutoGenerateColumns="False"
                    OnRowDeleting="HT_LoanInformationGrid_RowDeleting"
           onrowdatabound="HT_LoanInformationGrid_RowDataBound"   >
                    <RowStyle HorizontalAlign="Center" />
                    <Columns>
                     <asp:TemplateField HeaderText="序号" InsertVisible="False">
              <ItemStyle HorizontalAlign="Center" />
              <HeaderStyle HorizontalAlign="Center" Width="5%" />
             <ItemTemplate>
              <%#Container.DataItemIndex+1%>
            </ItemTemplate>
            </asp:TemplateField>
                                            <asp:TemplateField HeaderText="姓名">
                                                <ItemTemplate>
                                                 <%# Eval("CustomerName")%>
                                                </ItemTemplate>
                                                </asp:TemplateField>
                                            <asp:BoundField DataField="IdNumber" HeaderText="证件号">
                                                                            <HeaderStyle/>
                                                    <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="MortgageDetail" HeaderText="抵押信息">
                                                                            <HeaderStyle/>
                                                    <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>

<asp:BoundField DataField="LoanMoney" HeaderText="贷款金额" >
                                                                            <HeaderStyle/>
                                                    <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                             <asp:TemplateField HeaderText="剩余贷款">
                                                 <ItemTemplate>
                                                 <%# string.Format("{0:f2}",Eval("RemainMoney"))%>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                合计
                                                </FooterTemplate>
                                                </asp:TemplateField >
                                             <asp:TemplateField HeaderText="转让债权价值" >
                                                 <ItemTemplate>
                                                 <%# string.Format("{0:f2}",Eval("BorrowMoney"))%>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                <asp:Label ID="lblOfTransferValue" runat="server"></asp:Label>
                                                </FooterTemplate>
                                                </asp:TemplateField >
                                                <asp:TemplateField HeaderText="支付对价">
                                                 <ItemTemplate>
                                                  <%# string.Format("{0:f2}", Eval("BorrowMoney"))%>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                <asp:Label ID="lblOfPayPrice" runat="server"></asp:Label>
                                                </FooterTemplate>
                                                </asp:TemplateField >
                                            <asp:BoundField DataField="UseBorrow" HeaderText="借款用途">
                                                                            <HeaderStyle/>
                                                    <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="BackDate" HeaderText="还款日期">
                                                                            <HeaderStyle/>
                                                    <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="YieldMoney" HeaderText="债权收益率">
                                                                            <HeaderStyle/>
                                                    <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                    <asp:TemplateField HeaderText="删除">
                        <ItemStyle Width="60px"   />
                        <HeaderStyle  />
                        <ItemTemplate>
                            <asp:Image ID="Image2" runat="server" Height="9px" ImageUrl="~/images/010.gif" Width="9px" />
                            <asp:LinkButton ID="Delete" runat="server" CommandName="Delete" OnClientClick="javascript:return confirm('您确定要删除吗');">删除</asp:LinkButton>
                        </ItemTemplate>
                        <FooterTemplate>
                             <span style="cursor:pointer;color: blue;" onclick="javascript:window.open ('HT_ModifiCationLoan.aspx?flag=1&lendnum=<% =Request.QueryString["LendNum"] %>','_self','');">新增</span>
                            </FooterTemplate>
                    </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="bg2" HorizontalAlign="Center" />
                </asp:GridView>

Repeater 和 GridView 添加序列号的更多相关文章

  1. ASP.NET 为GridView添加序号列,且支持分页连续累计显示

    为GridView添加序号列,且支持分页连续累计显示,废话不多说,直接上代码: <%@ Page Language="C#" AutoEventWireup="tr ...

  2. Android GridView 添加 网格线解决办法

    在使用 GridView 网格布局时,默认情况下 GridView  是没有网格线的,但是有些时候我们需要让GridView显示分割线,怎么办呢?查了不少资料,找到了一种为GridView添加网格线的 ...

  3. Repeater控件添加序号列

    在项目开发过程中,会经常遇到ASP.NET repeater控件添加序号列,有些新手可能还不会,网上搜集整理了一些,需要的朋友可以参考下 ASP.NET repeater添加序号列的方法 1.< ...

  4. 自己写的一个ASP.NET服务器控件Repeater和GridView分页类

    不墨迹,直接上代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; usin ...

  5. Repeater和Gridview前台显示行号的方法

    Repeater : Container.ItemIndex (行号从零开始,如果想改为从1开始,那么可以将以上的代码改为Container.ItemIndex + 1),见下示例: <asp: ...

  6. gridview添加header

    gridview是不能添加header的,这里的解决方法是将listview改造成gridview使用,功能很好用,唯一的缺点是列数不能自适应 示例代码下载地址http://pan.baidu.com ...

  7. Repeater嵌套gridview

    前台:<asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSour ...

  8. asp.net 中Repeater和Gridview的区别

             Griview:              优点:1.GridView是从WebControl派生出来的,拥有WebControl样式属性,自身会被解析为table,其中的每一行会被 ...

  9. Repeater控件添加onmouseover和onmouseout事件

    网友有问题,在Repeater控件中,需要添加onmouseover和onmouseout事件功能.Insus.NET有叫他参考<onmouseover和onmouseout在Repeater控 ...

随机推荐

  1. 统计分析表的存储过程遇ORA-00600错误分析与处理

    1.            统计分析表的存储过程部分内容 CREATE OR REPLACE procedure SEA.sp_analyze_XXX_a is v_sql_1     varchar ...

  2. ClassNotFoundException Log

    Studio 运行时异常: Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation fail ...

  3. 阿里云ecs docker使用(2)

    1. 退出docker容器 命令 exit 2.sudo docker ps -l 3. sudo docker images 4. sudo docker commit ba300f05c1a3 c ...

  4. 将QQ登录接口整合到你的网站和如何修改配置

    http://www.phpfensi.com/php/20140727/3998.html 摘要:QQ登录的官方SDK进行了一些修改,使其更加容易的整合到自己的网站上去... 对QQ登录的官方SDK ...

  5. VIM中使用tab键自动完成(vim tab键自动补全 )插件supertab

    supertab.vmb 这个插件好好用, Tab自动补全 http://www.vim.org/scripts/script.php?script_id=1643 安装步骤: 1.下载 supert ...

  6. 剑指Offer:矩形覆盖【N1】

    剑指Offer:矩形覆盖[N1] 题目描述 我们可以用2*1的小矩形横着或者竖着去覆盖更大的矩形.请问用n个2*1的小矩形无重叠地覆盖一个2*n的大矩形,总共有多少种方法? 题目思考 我们先把2*8的 ...

  7. Zookeeper四字命令

    ZooKeeper 支持某些特定的四字命令(The Four Letter Words)与其进行交互.它们大多是查询命令,用来获取 ZooKeeper 服务的当前状态及相关信息.用户在客户端可以通过 ...

  8. Form表单插件

    jQuery Form是一个优秀的表单插件,它可以非常容易地,无侵入地升级HTML表单以支持Ajax jQuery Form表单插件的下载地址为 http://jquery.malsup.com/fo ...

  9. Quartz的misfire理解

    misfire用于Trigger触发时,线程池中没有可用的线程或者调度器关闭了,此时这个Trigger变为misfire.当下次调度器启动或者有可以线程时,会检查处于misfire状态的Trigger ...

  10. 通道(Channel)的原理获取

    通道表示打开到 IO 设备(例如:文件.套接字)的连接.若需要使用 NIO 系统,需要获取用于连接 IO 设备的通道以及用于容纳数据的缓冲区.然后操作缓冲区,对数据进行处理.Channel 负责传输, ...