Is there a mean to apply a filter on GridControl rows ? I'm not connected to a DataSource and I use the control to display data only. But I'd like to set filters on the columns (by text).
Can it be done other than manually ?
ADAdministrator Syncfusion Team September 8, 2003 09:22 AM
Currently, there is no support in GridControl for filtering.
So, if you need to support filtering, you would have to design and implement some way to do it.
One way you could do this is to maintain an arraylist of visible row indexes. Then handle the QueryCellInfo event and QueryRowCount event. Use QueryRowCount to provide the arraylist.Count as the number of rows in the grid. Then in QueryCellInfo use the arraylist to get the proper visible row. The VirtTreeGrid sample uses sort of this technique to dynamically display differing numbers of rows. It would take some coding, but I think it is doable.