Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

InitializeRow e.Row and e.Data throw NullReferenceExceptions

Last post 09-05-2008 10:33 by [Infragistics] Rumen Stankov. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-03-2008 17:05

    • dlimiter
    • Not Ranked
    • Joined on 09-03-2008
    • Points 40

    InitializeRow e.Row and e.Data throw NullReferenceExceptions

    I'm trying to customize some of the columns in my UltraWebGrid by handling the InitializeRow event on the grid.  I'm following the example in this article: http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.Aspx?ArticleID=1383.  The event fires, but e.Row and e.Data both throw a NullReferenceException.  I can verify this by inspecting the "e" RowEventArgs argument using QuickWatch in debug mode.  The private members _data and _row both have values, but the properties throw a NullReferenceException. 

     Can you suggest any way to avoid this?  Any ideas on why this is happening?

    • Post Points: 20
  • 09-04-2008 7:36 In reply to

    Re: InitializeRow e.Row and e.Data throw NullReferenceExceptions

    This is extremely weird, especially the part where the private field is avaiable, while e.Row returns null. Weird things, that I am also not able to reproduce that locally (using the sameexample from DevCenter against a simple databinding scenario fom NorthWind).

    Could you please send us the code you are using, grid ASPX declaration and some additional details that may help us reproduce the problem? 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 20
  • 09-05-2008 10:29 In reply to

    • dlimiter
    • Not Ranked
    • Joined on 09-03-2008
    • Points 40

    Re: InitializeRow e.Row and e.Data throw NullReferenceExceptions

    It's not that the properties return null.  They throw NullReferenceExceptions.  My usage of the grid is a little more complex than the sample, in that the grid is in an ASP.NET Ajax UpdatePanel, and I'm binding it in the codebehind.  I will send you the source, but I'd rather not post it on a public forum. 

    • Post Points: 20
  • 09-05-2008 10:33 In reply to

    Re: InitializeRow e.Row and e.Data throw NullReferenceExceptions

    Hello,

    In the more complex scenarios where exchange of projects is needed and possible bugs can be found (and where you want be sure noone else sees your source and data), I can recommend contacting our dedicated Developer Support department directly via this link:

    http://devcenter.infragistics.com/Protected/SubmitSupportIssue.aspx

    This way, you will have official support ticket with priority and tracking and will receive timely and guaranteed response from our support department (needless to say, everything you send is under NDA).

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems