zoukankan      html  css  js  c++  java
  • 每日日报2021.3.30

    今天完成内容:

    学习andriod GridView

     10.GridView实现自定义时间货币等字符串格式:

    <asp :GridView ID="GridView1" runat="server">
    <columns>
    <asp :BoundField DataField="CreationDate" 
    DataFormatString="{0:M-dd-yyyy}" 
    HtmlEncode="false"
    HeaderText="CreationDate" />
    </columns>
    </asp>

    <asp :GridView ID="GridView3" runat="server" >
    <columns>
    <asp :TemplateField HeaderText="CreationDate" >
    <edititemtemplate>
    <asp :Label ID="Label1" runat="server" 
    Text='<%# Eval("CreationDate", "{0:M-dd-yyyy}") %>'>
    </asp>
    </edititemtemplate>
    <itemtemplate>
    <asp :Label ID="Label1" runat="server" 
    Text=’<%# Bind("CreationDate", "{0:M-dd-yyyy}") %>'>
    </asp>
    </itemtemplate>
    </asp>
    </columns>
    </asp>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="身份证号码"
                DataSourceID="SqlDataSource1" AllowSorting="True" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" Font-Size="12px" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="身份证号码" HeaderText="身份证号码" ReadOnly="True" SortExpression="身份证号码" />
                    <asp:BoundField DataField="姓名" HeaderText="姓名" SortExpression="姓名" />
                    <asp:BoundField DataField="邮政编码" HeaderText="邮政编码" SortExpression="邮政编码" />
                    <asp:BoundField DataField="出生日期" HeaderText="出生日期" SortExpression="出生日期" />
                    <asp:BoundField DataField="起薪" HeaderText="起薪" SortExpression="起薪" />
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <RowStyle ForeColor="#000066" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:北风贸易ConnectionString1 %>"
                SelectCommand="SELECT top 5 [出生日期], [起薪], [身份证号码], [姓名], [家庭住址], [邮政编码] FROM [飞狐工作室]" DataSourceMode="DataReader"></asp:SqlDataSource>

    看视频

    遇到问题:

    明日目标:

    学习Android studio的开发

  • 相关阅读:
    IOS开发中针对UIImageView的几种常用手势
    VIew中的触摸事件 touchBegin 等一系列方法
    控制器的跳转-modal与push
    终于决定把自己的小窝从CSDN搬到博客园了
    UIView的frame和bounds区别
    android中数据存储的contentprovider的使用方法
    android中Json数据保存方式
    android手机操作SD的使用方法
    android手机中图片的拖拉及浏览功能
    android图片切换ImageSwichter的动画切换效果
  • 原文地址:https://www.cnblogs.com/leiyu1905/p/14909842.html
Copyright © 2011-2022 走看看