Bug Report T307337
Visible to All Users

ASPxGridView - "Object reference not set to an instance of an object" error when a complex KeyFieldName is used

created 9 years ago

[DevExpress Support Team: CLONED FROM T306397: ASPxGridView - How to add a custom control to EditFormLayout for an unbound column]
Unfortunately I can't confirm that this is the solution; in order to get the FindEditFormLayoutItemTemplateControl method I downloaded the hotfix which was provided in the link you provided. However, within that hotfix there appears to be an issue with how compound primary keys are handled in GridViews. I've attached a project which demonstrates this issue. The project is currently upgraded to that hotfix revision and will fail with the first call, but succeed on the second. If you downgrade it to the vanilla 15.1 or to 14.7, it will succeed.

Comments (3)
DevExpress Support Team 9 years ago

    Hello Marisa,

    Thank you for the sample. I have reproduced this behavior and redirected the issue to our developers. We will inform you as soon as we have any updates.

    M M
    Marisa W. Smith 9 years ago

      I'm currently blocked on a project due to this issue--is there any word on when a hotfix to the hotfix will be available? I think I can hack something together to get it to work, but of course I would much prefer it to be working.

      Mike (DevExpress) 9 years ago

        Hello,

        Our developers are working on this issue. We will do our best to address this issue as soon as possible and will post updates to this ticket once any news is available.

        Answers approved by DevExpress Support

        created 9 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.