Skip to content

DevExpress-Examples/asp-net-custom-typeconverter-class-for-xpo-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET Web Forms - How to implement a custom TypeConverter class for an XPO object

The ASPxGridView control caches object properties used in data-binding expressions. If you bind a grid to an XPO or custom objects that use a referenced association, the control tries to cache references too. Since the caching operation is similar to the ToString method and is performed smoothly, the object restoration from cache (from String to object) can be raised with the following exception: TypeConverter cannot convert from System.String.

This example demonstrates how to implement a custom TypeConverter class that can convert data from String to object type correctly.

Files to Review

Documentation