Filtering a GridDataBoundGrid

Is it at all possible to filter a GridDataBoundGrid object if its DataSource is anything but a DataTable/DataSet? I, for example, have an ArrayList (as the DataSource) and I do not wish to use a GridFilterBar. Thanks, Brian

2 Replies

AD Administrator Syncfusion Team April 20, 2006 06:26 AM UTC

Hi Brain, There is no built-in support for ArrayList filtering in a GridDataBound. The RowFilter support in a GridDataBoundGrid is based on the DataView.RowFilter property . You could implement you own support for filtering using QuerycellInfo event. The idea would be when you filter, to go through the full datasource, and remember the status of the visible rows (maybe in an HashTable). Then in your virtual implementation, you need to show/hide the proper rows. You can see this type of implementation in the attached sample. Here is a sample. http://www.syncfusion.com/Support/user/uploads/ArrayListGrid_7ecaa054.zip Let us know if this helps. Best Regards, Haneef


BS Brian Schlatter April 24, 2006 02:43 PM UTC

This is a good solution but I ran into performance problems working with grid of 1,000+ items. Got a lot of ideas from it though. Thanks again.

Loader.
Up arrow icon