Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
XamGrid: Require Empty Constructor
posted

Hi

Why do I do this? Because looks like it only needed if I use Add New Row functionality, but I don't.

http://help.infragistics.com/Help/Doc/WPF/2012.1/CLR4.0/html/xamGrid_RequireEmptyConstructor_Exception.html

Parents
  • 34810
    Offline posted

    Hello Vasily,

    It appears that the documentation article that you have linked is also missing some information. It is not only the AddNewRow in the XamGrid that requires an empty constructor on your underlying data item. Filtering in the XamGrid also requires this, and so I believe this documentation article may need to be updated to reflect that.

    Are you allowing filtering operations in your XamGrid? If so, I would recommend following the steps in the documentation article to use the DataObjectRequested event to return an item to be used with your filtering operations.

    If you are not allowing filtering operations in the XamGrid and are still seeing this exception, then would it be possible for you to please provide the code that you are currently using for your XamGrid so I may investigate further and try to determine why you are seeing this exception?

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer

Reply Children