<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. 目标跟踪之粒子滤波---Opencv实现粒子滤波算法

    目标跟踪学习笔记_2(particle filter初探1) 目标跟踪学习笔记_3(particle filter初探2) 前面2篇博客已经提到当粒子数增加时会内存报错,后面又仔细查了下程序,是代码方 ...

  2. 在另一个线程中无法用((CMainFrame *)AfxGetMainWnd())

    一个vc6的项目放到vc8下重新编译这里死活过不去 查了些资料无果后来翻到一句老外的回答 If AfxGetMainWnd is called from the application’s prima ...

  3. ios math.h 常用数学函数

    1. 三角函数  double sin (double);正弦  double cos (double);余弦  double tan (double);正切  2 .反三角函数  double as ...

  4. 自定义下拉刷新控件-CBStoreHouseRefreshControl

    本文转载至 http://www.cocoachina.com/ios/20141110/10177.html iOS开发自定义刷新CBStoreHouseRefres 介绍 这是一款在Storeho ...

  5. python 基础 5.2 类的继承

    一. 类的继承 继承,顾名思议就知道是它的意思,举个例子说明,你现在有一个现有的A类,现在需要写一个B类,但是B类是A类的特殊版,我们就可以使用继承,B类继承A类时,B类会自动获得A类的所有属性和方法 ...

  6. 高性能流媒体服务器EasyDSS前端重构(四)- webpack + video.js 打造流媒体服务器前端

    接上篇 接上篇<高性能流媒体服务器EasyDSS前端重构(三)- webpack + vue + AdminLTE 多页面引入 element-ui> 本文围绕着实现EasyDSS高性能流 ...

  7. Java反射机制简单学习

    java中除了基本数据类型,几乎都为对象.例如 Person p=new Person(); 这句语句表明了p是Person类的一个实例对象.但其实,Person也是一个实例对象,它是Class类的实 ...

  8. 用 Apache POI 读取 XLSX 数据

    最近因为项目的原因,需要从一些 Microsoft Office Excel 文件读取数据并加载到数据库. Google了一下方法,发现其实可以用的 Java 第三方库很多,最著名的是 Apache ...

  9. Java实参和形参与传值和传引用

    实参和形参的定义: 形参出现函数定义中,在整个函数体内都可以使用,离开函数则不能使用. 实参出现在主函数中,进入被调函数后,实参变量也不能使用. 形参和实参的功能是做数据传送.发生函数调用时,主调函数 ...

  10. 3D焦点图插件

    在线演示 本地下载