Searching through a paged ObjectDataSource
-
Hi, I've built a page that has a GridView using an ObjectDataSource to display data, in pages of 30 rows per page. The table that's being paged has 26,000 values, and since it's very hard to find a certain value by going one page after another I'd like to add a search option to the gridview. I've tried switching my datasource from the ObjectDataSource to a method that retrieves a DataSet with the search results, but that way I can't use the edit or delete buttons and I will have to implement the RowDeleting and such, and that's too much of a hussle. What I'm looking for is a way to search through the ObjectDataSource, is it possible? Or would I have to build another DataSource and keep switching from one to another when searching/viewing all values? I hope I'm clear. Thanks
-
Hi, I've built a page that has a GridView using an ObjectDataSource to display data, in pages of 30 rows per page. The table that's being paged has 26,000 values, and since it's very hard to find a certain value by going one page after another I'd like to add a search option to the gridview. I've tried switching my datasource from the ObjectDataSource to a method that retrieves a DataSet with the search results, but that way I can't use the edit or delete buttons and I will have to implement the RowDeleting and such, and that's too much of a hussle. What I'm looking for is a way to search through the ObjectDataSource, is it possible? Or would I have to build another DataSource and keep switching from one to another when searching/viewing all values? I hope I'm clear. Thanks
-
There is a workaround to do this is by setting "DefaultValue" of the "SelectParameters" of your object datasource. This depends on how and what u r calling exaclty :)
Best Regards 3ala2 :)