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
    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top