当前位置: 代码迷 >> ASP.NET >> DevExpress(asp.net)里的AspxGridView分页有关问题
  详细解决方案

DevExpress(asp.net)里的AspxGridView分页有关问题

热度:9819   发布时间:2013-02-25 00:00:00.0
DevExpress(asp.net)里的AspxGridView分页问题
DevExpress(asp.net)里的AspxGridView分页问题
1.默认分页是否可以有浮动,不该Template情况下
2.我修改了模版
  <dx:ASPxGridView ID="dxGVTerminalFaults" SkinID="gridviewSkin" runat="server">
  <Templates>
  <PagerBar>
  <div class="clear_float">
  <dx:ASPxLabel ID="lblCustomArea" runat="server" CssClass="left_float num_total" Visible="true" Text="6 faults" />
  <div class="nav_pager right_float">
  <dx:ASPxPager ID="ASPxPager1" runat="server" ItemsPerPage="10" ItemCount="23">
  <Summary Text="Page {0} of {1}" />
  </dx:ASPxPager>
  </div>
  </div>
  </PagerBar>
  </Templates>  
  <SettingsBehavior AllowSelectByRowClick="True" />
  <Columns>
  <dx:GridViewDataTextColumn Caption="Terminal ID" FieldName="TermId">
  </dx:GridViewDataTextColumn>  
  <dx:GridViewDataTextColumn Caption="Fault" FieldName="Fault_Description">
  </dx:GridViewDataTextColumn>  
  <dx:GridViewDataTextColumn Width="120" CellStyle-HorizontalAlign="Center" Caption="Started At" FieldName="Recording_Time">
  <DataItemTemplate><%# DataBinder.Eval(Container.DataItem,"Recording_Time","{0:dd\\/MM\\/yyyy HH:mm:ss}") %></DataItemTemplate>
  <CellStyle HorizontalAlign="Center">
  </CellStyle>
  </dx:GridViewDataTextColumn>  
  <dx:GridViewDataTextColumn Width="120" CellStyle-HorizontalAlign="Center" Caption="Ended At" FieldName="Fault_Time">
  <DataItemTemplate><%# DataBinder.Eval(Container.DataItem, "Fault_Time", "{0:dd\\/MM\\/yyyy HH:mm:ss}")%></DataItemTemplate>
  <CellStyle HorizontalAlign="Center">
  </CellStyle>
  </dx:GridViewDataTextColumn>  
  <dx:GridViewDataTextColumn Width="120" Caption="Duration(Minutes)" FieldName="Duration">
  </dx:GridViewDataTextColumn>  
  </Columns>
  </dx:ASPxGridView>

现在动态设置分页的itemscount,一直报NULL,郁闷啊

------解决方案--------------------------------------------------------
参考
------解决方案--------------------------------------------------------
http://blog.csdn.net/zjlovety/article/details/6651423
  相关解决方案