First, is it possible to have a filterbar not filter certain columns? So some columns in the grid will allow filtering while other columns in the same grid will not.
Also I noticed that if I start entering a new record in a GDBG then before completing the record I change the filter in a column for which I haven''t entered data in the new row yet. The new row stays in the filtered selection, but if I try to click on the new row again I get an IndexOutOfRangeException. It appears that when going back to the newly created row, the grid is trying to use it''s index before the filter, which is then out of range after the filter is run. I assume this is a bug in the way the GDBG handles filtering, but in any case I need a way to work around it.
ADAdministrator Syncfusion Team May 25, 2005 10:36 AM
1) Handle the FilterBarCreatingColumnHeader event. In the event handler, you can disallow filtering for a column. Searc for "don''t try filter these columns" in the GridFilterBar sample we ship.
2) You can avoid this problem by handling the CurrentCellMoving event and either cancel the changes or save them if you are clicking a filterbar cell.