Im making an order/dispatch system for the company I work for and as they will be getting a new server with windows 2003 i though i may as well develop for IIS6. Ive got most of it working but i'm not happy with the Gridview object i'm using to display the data from the database.
I need to implement various queries on the same database tables and display them in a Gridview on the respective page. So i can for example search my orders list by date/customer/order number etc. I can achieve this using a BLL made with c# classes and then calling the methods to retrieve a datatable which i can then bind to the gridview. This is ok except that I cannot sort or page the gridview which i would also like to do. I then tried to call a single method from my BLL using an objectdatasource which the gridview was bound too. I could then call methods to mutate the BLL object to change the datatable it retured to the objectdatasource. Therefore mantaining the database search functions and gaining the sort/page features of the objectdatasource. I cannot however access the instance of the BLL class the objectdatasource is using to mutate it. Therefore it is useless.
This must be something that is commonly done in websites. Is there an easier way to do this?
I need to implement various queries on the same database tables and display them in a Gridview on the respective page. So i can for example search my orders list by date/customer/order number etc. I can achieve this using a BLL made with c# classes and then calling the methods to retrieve a datatable which i can then bind to the gridview. This is ok except that I cannot sort or page the gridview which i would also like to do. I then tried to call a single method from my BLL using an objectdatasource which the gridview was bound too. I could then call methods to mutate the BLL object to change the datatable it retured to the objectdatasource. Therefore mantaining the database search functions and gaining the sort/page features of the objectdatasource. I cannot however access the instance of the BLL class the objectdatasource is using to mutate it. Therefore it is useless.
This must be something that is commonly done in websites. Is there an easier way to do this?