c# - How to Implement Interface IPagedCollectionView -


i have datapager , doing custom paging. want set itemcount property of datapager according count of total rows returned. found out itemcount read-only property. how can set it? way out?

the ipagedcollectionview interface contains itemcount property

public int itemcount {    { throw new notimplementedexception(); } } public int totalitemcount {    { throw new notimplementedexception(); } } 

because logic calculate (total) count should encapsulated inside class

public int itemcount {    { return yourcalculationmethod(); } } 

Comments