Dev的ASPxGridView控件问题

 今天用dev的gv控件,自带分页样式感觉不满足要求,自己改了模版,可以无奈不知道怎么去给里面的分页设置ItemsPerPage="10" ItemCount="23"除了写死,找不到个好地方,绑定时设置一直findcontrol报null无奈啊:

  
  
  
  
  1. <dx:ASPxGridView ID="dxGVTerminalFaults" SkinID="gridviewSkin" runat="server"
  2.     <Templates> 
  3.         <PagerBar> 
  4.         <div class="clear_float"
  5.             <dx:ASPxLabel ID="lblCustomArea" runat="server" CssClass="left_float num_total" Visible="true" Text="6 faults" /> 
  6.             <div class="nav_pager right_float"
  7.                 <dx:ASPxPager ID="ASPxPager1" runat="server" ItemsPerPage="10" ItemCount="23"
  8.                     <Summary  Text="Page {0} of {1}" /> 
  9.                 </dx:ASPxPager> 
  10.             </div> 
  11.         </div> 
  12.         </PagerBar> 
  13.     </Templates>             
  14.     <Columns> 
  15.         <dx:GridViewDataTextColumn Caption="Terminal ID" FieldName="TermId"
  16.         </dx:GridViewDataTextColumn>                    
  17.         <dx:GridViewDataTextColumn Caption="Fault" FieldName="Fault_Description"
  18.         </dx:GridViewDataTextColumn>   
  19.         <dx:GridViewDataTextColumn Width="120" CellStyle-HorizontalAlign="Center" Caption="Started At" FieldName="Recording_Time"
  20.             <DataItemTemplate><%# DataBinder.Eval(Container.DataItem,"Recording_Time","{0:dd\\/MM\\/yyyy HH:mm:ss}") %></DataItemTemplate> 
  21.         </dx:GridViewDataTextColumn>                     
  22.         <dx:GridViewDataTextColumn Width="120" CellStyle-HorizontalAlign="Center" Caption="Ended At" FieldName="Fault_Time"
  23.             <DataItemTemplate><%# DataBinder.Eval(Container.DataItem, "Fault_Time""{0:dd\\/MM\\/yyyy HH:mm:ss}")%></DataItemTemplate> 
  24.         </dx:GridViewDataTextColumn>          
  25.         <dx:GridViewDataTextColumn Width="120" Caption="Duration(Minutes)" FieldName="Duration"
  26.         </dx:GridViewDataTextColumn>                                                                                
  27.     </Columns> 
  28. </dx:ASPxGridView> 

截图:

 

希望熟悉此东东的达人相助:-)

你可能感兴趣的:(职场,休闲,dev,gv)