<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. java中的 equals + hashCode

    [0]README 0.1)本文转自 core java volume 1, 旨在理清 equals + hashCode方法: [1]equals方法 1.1) Object中的 equals 方法 ...

  2. urllib库python2和python3具体区别

      Python 2 name Python 3 name urllib.urlretrieve() urllib.request.urlretrieve() urllib.urlcleanup() ...

  3. wamp环境配置;转自发瑞的博客(www.cnblogs.com/cyrfr/p/6483529.html)

    php手动搭建环境有好多种组合,版本号不一致,会导致搭建失败. 我搭建的组合是: php5.6+MySQL5.6+Apache2.4的组合. 一.PHP语言包下载 首先从官网上下载php5.6 htt ...

  4. 【BZOJ3963】[WF2011]MachineWorks cdq分治+斜率优化

    [BZOJ3963][WF2011]MachineWorks Description 你是任意性复杂机器公司(Arbitrarily Complex Machines, ACM)的经理,公司使用更加先 ...

  5. 九度OJ 1157:中位数 (中位数、排序)

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:2188 解决:1294 题目描述: 中位数定义:一组数据按从小到大的顺序依次排列,处在中间位置的一个数(或最中间两个数据的平均数). 给出一 ...

  6. The template root requires exactly one element

    The template root requires exactly one element

  7. jquery .html(),.text(),.val()用法

    .html()用为读取和修改元素的HTML标签 .text()用来读取或修改元素的纯文本内容 .val()用来读取或修改表单元素的value值. 这三个方法功能上的对比 .html(),.text() ...

  8. [2018-08-25]模板引擎Razor Engine 用法示例

    好久没写博客了,回宁波后最近几个月一直忙些线下的事情. 敲代码方面脱产有阵子了,生疏了,回头一看,这行业果然更新飞快. 最近线下的事情基本忙完,准备开始干回老本行,最重要的一件事就是升级abplus库 ...

  9. HDU - 2612 Find a way 【BFS】

    题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=2612 题意 有两个人 要去一个城市中的KFC 一个城市中有多个KFC 求两个人到哪一个KFC的总时间最 ...

  10. Spring Boot2.0之整合log4j

    传统方式打印日志比较复杂, 每次打印需要定义全局变量 private static final Logger logger = LoggerFactory.getLogger(SjpControlle ...