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

[Solved] Issues with special characters in column name

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Murali
Top achievements
Rank 1
Murali asked on 17 May 2011, 12:41 PM
We have a data view that has some coumn names with @ character in one of its column name ( ex:account_primary_id@rn_descriptor). When we try to bind this view in  asp.net mvc grid, it is giving an error. Is this a behaviour? Is there a workaround?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 17 May 2011, 05:00 PM
Hello Murali,

Could you please let us know what the error is?

The column member must be a valid C# or VB.NET identifier. account_primary_id@rn_descriptor is not a valid identifier and you won't even be able to have an object with such a property. Do you happen to use a DataTable? If yes - you should change the name of the column. You can just set the Title of the column.

columns.Bound(c => c.ValidName).Title("account_primary_id@rn_descriptor");

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Murali
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or