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

2 posts, 0 answers
  1. Ramkrishn
    Ramkrishn avatar
    2 posts
    Member since:
    Sep 2011

    Posted 02 Jan 2012 Link to this post

    Posted 19 minutes ago (permalink)

       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.
  2. Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 02 Jan 2012 Link to this post

    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 >>

Back to Top