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

Unable to cast object of type 'Telerik.Windows.Controls.GridView.GridViewRow' to type 'Telerik.Windows.Controls.GridView.GridViewCellBase'.

1 Answer 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ramkrishn
Top achievements
Rank 1
Ramkrishn asked on 02 Jan 2012, 06:38 AM


Posted 19 minutes ago (permalink)
Hi, 


   I'm using Telerik Rad Control for my Silverlight project. I developed a project before 2 months ago in silverlight using TelerikRadControl. I used RadGridView on my dashboard, I created a functionality on row activated event of RadGridView. According to my functionalty, on cell double click  i need to get GridViewDataColumn. So i wrote the this code:


var cl = ((Telerik.Windows.Controls.GridViewDataColumn)(((Telerik.Windows.Controls.GridView.GridViewCellBase)(((Telerik.Windows.RadRoutedEventArgs)(e)).OriginalSource)).Column));


Its was working fine and i was getting my output and tested.

But now suddenly  i got error even i didn't touch my code regarding this functionality.

The error is 

Unable to cast object of type 'Telerik.Windows.Controls.GridView.GridViewRow' to type 'Telerik.Windows.Controls.GridView.GridViewCellBase'.

I don't know how could be this happened.

Now i resolved this error. I changed the code. But i just want to know how could be this without touching the code. And this code was working very fine before now. and Still i can run my project with old Telerik DLLs but when i replaced new DLLs that time it was working fine and tested but after some time its giving error.

Is Telerik DLLs auto updated by telerik server?

I hope you'll reply soon


Thanks & Regards,
Ramkrishn Saini,
Silverlight Developer,
+91 9004750706,
Mumbai, India.

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 02 Jan 2012, 03:17 PM
Hi  Ramkrishn Saini,

Telerik dlls definitely do not autoupdate without your initiation.  I am not sure what went wrong .
In case the problem persist  please attach me the full version  ( ideally a runnable project) and I will inspect your code for you.

All the best,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Ramkrishn
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or