<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. programming review (c++): (2)binary tree, BFS, DFS, recursive, non-recursive

    1.二叉树定义 // Definition for a binary tree node. struct TreeNode { int val; TreeNode *left; TreeNode *r ...

  2. EasyPlayer RTSP Windows播放器D3D,GDI的几种渲染方式的选择区别

    EasyPlayer-RTSP windows播放器支持D3D和GDI两种渲染方式,其中D3D支持格式如下: DISPLAY_FORMAT_YV12 DISPLAY_FORMAT_YUY2 DISPL ...

  3. Intellij IDEA创建的Web项目配置Tomcat并启动Maven项目(转)

    大部分是直接上图哦. 点击如图所示的地方,进行添加Tomcat配置页面 弹出页面后,按照如图顺序找到,点击+号 tomcat Service -> Local 注意,这里不要选错了哦,还有一个T ...

  4. 九度OJ 1160:放苹果 (DFS)

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:998 解决:680 题目描述: 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和 ...

  5. 我的Android进阶之旅------>Android使用正则表达式匹配扫描指定目录下的所有媒体文件(音乐、图像、视频文件)

    今天使用正则表达式匹配指定目录下的所有媒体文件,下面将这份代码简化了,可以收藏下来,当作工具类. package match; import java.io.File; import java.uti ...

  6. centos7 执行一个数据库脚本创建项目中的数据库

    [root@localhost ~]# su postgres 切换用户 bash-4.2$ psql could not change directory to "/root": ...

  7. 一步步玩pcDuino3--mmc下的裸机流水灯

            第一部分是玩pcduino3下的裸机.这个过程能够让我们更好的理解嵌入式系统,熟悉我们使用的这个平台.         首先介绍下开发环境: 虚拟机:VMware® Workstati ...

  8. MySQL多表查询一网打尽

    现有四张表 mysql> select * from student; +------+--------+-------+-------+ | s_id | s_name | s_age | s ...

  9. 前端JSONPJIE解决跨域问题

    解决同源策略的两个方法 1 . JSONP jsonp (将 JSON 数据填充进回调函数,这就是JSONP的JSON+Padding 的含义) jsonp是json用来跨域的一个东西,原理是通过sc ...

  10. 解析器组件和序列化组件(GET / POST 接口设计)

    前言 我们知道,Django无法处理 application/json 协议请求的数据,即,如果用户通application/json协议发送请求数据到达Django服务器,我们通过request.P ...