Ticket Q136597
Visible to All Users

No parameterless constructor defined for this object

created 16 years ago

Hi, I have got error "No parameterless constructor defined for this object" when I am trying to update a row of the grid. I have got a ObjectDataSource linked to the grid. Behind the dataset, there is a stored procedure to be used to update the database. I have also set up UpdateParameters in the properties of the objectDataSource. What's the possible problem of that?
Cheers
Daniel

Answers

created 16 years ago

Hi Daniel,
I suggest that you look at the following post, where a similar problem is discussed:
http://forums.asp.net/p/1027043/1407412.aspx#1407412
If this doesn't help, please provide us with a small sample, illustrating the issue, so that we can examine it in every detail.
Thanks,
Vito

    Comments (3)

      Hi I have read the post and could you please explain more? I have attached a sample project and please have a look at it. You can not run it as it is linked to our database. But you may look at the settings. Please have a look the following files:
      frmRptStoneScheduleReadyForDelivery.aspx (There is a objectDataSource in this form)
      app_code\ClaytonsSupp.dsReadyforDelivery.xsd
      sp_Claytons_UpdateStoneForDelivery.txt (This is the script of the stored procedure)
      Cheers
      Daniel

      DevExpress Support Team 16 years ago

        Hi Daniel,
        We've examined the code you posted, but this information doesn't help us determine the exact cause of the problem. This problem seems to be related to your data source (I suppose that the same error will occur when using standard data controls), but we can't tell you what is the exact cause of the problem until we see it in action. Can you please provide us with a complete sample (along with the sample database), illustrating the issue, so that we can examine it in detail?
        Thanks,
        Vito

          we found another way to achieve our goal.

          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.