ASP.Net site is required, VB will be just fine at better C #.
I think we all meet on a daily basis in such a situation. The pager as the UI is useless if the data object is bound to list inventory or other types of debuggable objects in less than PageSeries items.
So Q: How to disable it?
You can hide it in the event of your list view when the pagex of the Roucoconte pager of your datasource is low / For example (pseudo-code, change your data source):
Private sub-list view 1_DataBound (Sub-sender as the object, System.Venture as ByVal E. List) 1 Visibility. DataPager = DataCart (ListView1 FindControl ("DataPager1"), DataPager.Visible = yourDataSource.Rows.Count> as DataAbound Dim DataPager DataPager.PageSize End sub Edit : If you use an ObjectDataSource, you can access the Data Source (C #):
Secure Zero ObjectDecunded from DataSource1 (Object Sender, ObjectDataSourceStatsEventEurgesE) {// Obsecute Total Data from ObjectDataSatables dt = e.ReturnValue as DataTable; Int totalcdcount = dt.rows.Count; } VB:
Private Sub ObjectDataSource1 selected (byval sender as object, byVal e ObjectDataSourceStatusEventArgs) ObjectDataSource1 handles. DATITEL = DIRECT SEAST (E. Return Return, Datatelle) DIM Total Record Count 32 = DT as DT, Receive total count from selected 'ObjectDataSource dim. You can use your code above to change the visibility of pagers, then you can use your code above to change the visibility of the pager. / P>
Comments
Post a Comment