Hi,
Here is the Simple version - I’m wondering if its possible to create a dynamic typed list programmatically and bind it to the LLBLGenProDataSource object..
Here is the scenario..
I have an asp.net search page with checkboxes related to various column names, and a search related textbox. When the form is submitted, I build a dynamic typed list by creating a ResultsetFields collection based on the column name tickboxes selected. The ResultsetFields is passed to a TypedListDAO which is used to populate a dataset. This dataset populates an asp:GridView control.
However when it comes to paging I start getting potential issues. I don’t really want to be retrieving a full list every time I page through the results, but just retrieve 10 records per grid page. If I pass a page index and page size into my GetMultiAsDataSet method, this returns only 10 records into the dataset but then the asp:Gridview doesn’t recognise that there are more records in the database and doesn’t show the paging links.
What I would ideally like to be able to do is make the TypedListDAO as the datasource of an LLBLGenProDataSource and point that at the asp:GridView control. This is because (im my limited understanding of things) the paging method used by the LLBLGenProDataSource pages using the ROW_NUMBER functionality (sql server 2005) and retrieves X records at a time. As far as I can see, its only possible to use EntityCollections or TypedLists as the datasource for an LLBLGenProDataSource.
So...Any help or advice on which way to proceed would be greatly appreciated..
I'm using LLBLGen v2 Final (SelfServicing) and SQL SERVER 2005 and VS2005 and AspNet2.