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

[Solved] "]" character in a column name, breaks filter

1 Answer 100 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gary C
Top achievements
Rank 1
Gary C asked on 11 Nov 2009, 07:29 AM
Hello,

My test app, is a WinForm application:

I have a column in a DataTable named "my]field". I also have a RadGridView with the "EnableFiltering" property set to "True". I assign my DataTable to the DataSource of the RadGridView. At runtime, when I attempt to set a filter on this column, I get this error: "Syntax error: Missing operand after 'field' operator."

Any ideas how I can have a "]" character in a column name and the filtering still works?

Thanks,
-Gary

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 13 Nov 2009, 04:58 PM
Hello Gary Campbell,

RadGridView uses a filtering model and expressions from the DataView filtering and the ']' symbol is a special symbol in the string expressions. For this reason you can not use this special character in column names, because the composed filter expression will be invalid.

We will continue to investigate and research the problem in the future and we may even try to implement a mechanism which will work around  this inconvenience.

 
Kind regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Gary C
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or