This is a migrated thread and some comments may be shown as answers.

Problem with CustomFilter example when switching to manual column creation

2 Answers 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 25 Sep 2009, 10:58 AM
Hi

Here's my problem, a while ago, I implemented the search as you type example as is in my grid, which was set using autogenerating columns and a IList<customType> collection, and it was working fine.

Yesterday, I had to switch the autogenerating columns to a manual creation using GridViewDataColumns, and now, the custom filter gives me an error when I type somthing in.

At first, I had a CastException, from string to customType, so I added as many columns as my customType has  attributes (not all of them must be displayed at once all the type, it depends).

After doing that, I have a FormatException, incorrect input format.

Both exception are raised from this line :

return this.compositeFilterDescriptor.CreateFilterExpression(parameterExpression) in the method CreateFilterExpression.

Could you help me fix that issue ?

2 Answers, 1 is accepted

Sort by
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 28 Sep 2009, 07:35 AM
Please, I could really use some help in here.
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 28 Sep 2009, 09:36 AM
Never mind, I fixed it. Something to do with the hidden columns on the grid.
Tags
GridView
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Ludovic Gerbault
Top achievements
Rank 1
Share this question
or