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

GridCalculatedColumn 2008 Q2

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mrinal Chatterjee
Top achievements
Rank 1
Mrinal Chatterjee asked on 08 Aug 2008, 10:37 PM
Hello,

After upgrading the binaries to 2008 Q2, My radgrids with GridCalculatedColumns are getting "Specified cast is not valid." exception.

I'm binding the grid from code behind by creating a dynamic class using LINQ.

Below is my code for GridCalculatedColumn

<telerik:GridCalculatedColumn Aggregate="Sum" DataFields="Lines" DataType="System.Int32" Expression="{0}"></telerik:GridCalculatedColumn>

1 Answer, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 2
answered on 09 Aug 2008, 03:17 AM
As a silly question, I assume that the data being returned from your query is all intergers? Otherwise, it will cause the cast to be invalid. Have you tried Data.Type="System.Double" just to see if it runs?

Thanks for listening!

Sean
Electronic Arts, Orlando FL
Tags
Grid
Asked by
Mrinal Chatterjee
Top achievements
Rank 1
Answers by
Sean
Top achievements
Rank 2
Share this question
or