当前位置: 代码迷 >> Web前端 >> GridView有关属性
  详细解决方案

GridView有关属性

热度:566   发布时间:2014-02-21 00:12:21.0
GridView相关属性
<asp:GridView 
                    ID="GridViewUsers" 
                    runat="server" 
                    AllowPaging="True" 
                    DataSourceID="ObjUsers" 
                    EmptyDataText="没有可显示的数据记录" 
                    AutoGenerateColumns="false" 
                    AllowSorting="true" 
                    DataKeyNames="Id" 
                    PageSize="2"
                    PagerSettings-FirstPageText="首 页"
                    PagerSettings-LastPageText="尾 页"
                    PagerSettings-NextPageText="下一页"
                    PagerSettings-PreviousPageText="上一页"
                    PagerSettings-Mode="NextPreviousFirstLast"
                    PagerStyle-HorizontalAlign="Center"
                    BorderWidth="0"
                    CellPadding="0" 
                    CellSpacing="0" 
                    CssClass="data-table"
                    Width="100%">...
</asp:GridView>

?