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

Cannot find column ColumnName

1 Answer 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Declan Murphy
Top achievements
Rank 1
Declan Murphy asked on 01 Mar 2009, 11:02 PM
I received the following error when user tried to perform sorting on certain columns that are referencing extended properties from partial class. Sys.WebForms.PageRequestManagerServerErrorException: Cannot find column ColumnName.

I am using partial class to extend classes generated by ORM. I have something similar to below:
public partial class Person //generated by ORM 
   public int Id {get;set;} 
   public string FirstName {get;set
public partial class Person //hand written 
   public DateTime CreatedOn {get;set;} 
   public Gender Gender {get;set;} 
public enum Gender 
   Male = 1, 
   Female = 2 

Sorting will work on Id and FirstName columns. And will throw exception on CreatedOn and Gender properties. The thing I don't understand is that they are displayed properly but just not on the sorting.

Any ideas? Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 04 Mar 2009, 12:16 PM
Hello Declan,

To avoid duplicate posts, we will address the question in the support ticket that you have opened on the same matter, shortly. Please, refer to it for more information.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Declan Murphy
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or