Skip to main content

A property with the name XXX is not found in the object of type YYY

When the Grid tries to load a data source collection, you may see the following exception in the browser console:

Error: System.Exception: A property with the name 'XXX' is not found in the object of type 'YYY'

This error occurs if your data source does not contain a property with the name specified in the error message. The Grid works only with data object values defined by the DxGridDataColumn.FieldName properties. That is why the exception is thrown if your class has a public field with the specified name. You should assign not fields but properties of the bound object as the DxGridDataColumn.FieldName property value. To resolve the issue, update your data structure so that it implements the property with the corresponding name.