<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. 【PHP开发】用curl向https发请求时的35号错误

    放了个假发现以前写的程序的模拟登陆不管用了,中间输出,发现curl向https发请求时没有返回数据,输出错误信息,得到: curl_errno($ch) -----> 35 curl_error ...

  2. C#之stream

    在C#中经常要用stream stream下面主要有 FileStream:使用文件作为后备设备. BufferedStream:使用缓冲区作为后备设备,用来增强性能的中间存储. MemoryStre ...

  3. VS2017快捷键

    1.回到上一个光标位置/前进到下一个光标位置 (1)回到上一个光标位置:使用组合键“Ctrl + -”; (2)前进到下一个光标位置:“Ctrl + Shift + - ”. 2.复制/剪切/删除整行 ...

  4. EasyPlayerPro(Windows)流媒体播放器开发之ffmpeg log输出报错

    EasyPlayerPro主要基于ffmpeg进行开发,在EasyPlayerPro开发过程中,曾遇到一个相对比较棘手的问题,该问题一般在播放不是很标准的流或者网络情况较差,容易出现丢帧的情况特别容易 ...

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

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

  6. 九度OJ 1046:求最大值 (基础题)

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:9861 解决:4013 题目描述: 输入10个数,要求输出其中的最大值. 输入: 测试数据有多组,每组10个数. 输出: 对于每组输入,请输 ...

  7. 7 Types of Regression Techniques

    https://www.analyticsvidhya.com/blog/2015/08/comprehensive-guide-regression/ What is Regression Anal ...

  8. Pentaho BIServer Community Edtion 6.1 使用教程 第三篇 发布和调度Kettle(Data Integration) 脚本 Job & Trans

    Pentaho BIServer Community Edtion 6.1 集成了 Kettle 组件,可以运行Kettle 程序脚本.但由于Kettle没有直接发布到 BIServer-ce 服务的 ...

  9. 查看物料凭证MB03 /MIGO A04-显示,R02-物料凭证

    当货物移动操作后,可以使用事物码MB03.MIGO查询最近一次生成的物料凭证, 如果未知凭证号,Table:MKPF / AUFM/EKBE MKPF 抬头:物料凭证 KEY: MBLNR 物料凭证编 ...

  10. requests不加代理

    requests里的proxies不加代理可以设置为空,就会使用本机IP proxies={}