The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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
BSBrian SchlatterApril 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.