Databounditem throws exception

2 posts, 0 answers
  1. Kristof
    Kristof avatar
    32 posts
    Member since:
    Oct 2006

    Posted 13 Jun 2007 Link to this post

    e.CurrentRow.DataBoundItem throws a nullreference exception if it is not set. This should really be solved by just returning null, because using this code:

    if(e.CurrentRow.DataBoundItem != null)
    {
        //some code
    }

    doesn't work. Catching the exception causes unwanted side effects.

  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 13 Jun 2007 Link to this post

    Hi Kristof,

    Yes you are right, this is a problem. Thanks for submitting it. We will fix this bug in our next service pack due next week. Your points have been updated for the report.
     

    Best wishes,
    Jack
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top