In my application I use a usercontrol that contains a grid and buttons for paging functionality. The user can specify how many items he wants to see per page. To use custom objects I used generic lists which contain the items. So the control contains two collections:
List<Article> _wholeCollection;
List<Article> _shownCollection;
The problem is, that I want to use the control for several modules, e.g. Addresses.
But what do I have to do with the collections? It should be possible to create a generic usercontrol(ListCtrl<Article>).
Has anyone ideas how to create something like that?
List<Article> _wholeCollection;
List<Article> _shownCollection;
The problem is, that I want to use the control for several modules, e.g. Addresses.
But what do I have to do with the collections? It should be possible to create a generic usercontrol(ListCtrl<Article>).
Has anyone ideas how to create something like that?