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

Databounditem throws exception

1 Answer 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kristof
Top achievements
Rank 1
Kristof asked on 13 Jun 2007, 03:26 PM

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.

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 13 Jun 2007, 04:02 PM
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
Tags
GridView
Asked by
Kristof
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or