I try to use the Custom Data Type, but is getting stuck in some kind of Casting error.
I have a numeric field that is the STATUS (Active or Passive) in my Customer record.
I have made the following Enum definition
public enum StatusType
{
Aktiv = 0,
Passiv = 1
}When using the ComboBox compononent everything is working ok.
In step two I would like to set the "Custom Data Type" in the BOM to the "StatusType" definition. Adding the datatype seems to go fine and the IDE is working correctly when adding a default value
this
.tr_status = StatusType.Aktiv;When I run the application - open the maintainance form for the CustomerBO, I receive the following error
"InvalidCastException: Specified cast is not valid"
>>>> return
(mbs2.Business.StatusType)this.CurrentRow["tr_status"];Can someone explain me what might be wrong here, thanks!
I need to mention that when I search for the Class Type in the BOM I receive an error saying that it "Could not gather enums for Strataframe Inherited UI" and then it fails on "DevExpress.xxxxxx.v8.1".
I have v7.1 installed!!!!
Best regards
Ulrik Mueller (Denmark)
Exception
Could not gather enums for MicroFour StrataFrame Inherited UI
ReflectionTypeLoadException
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
LoadExceptions:
FileNotFoundException
Could not load file or assembly 'DevExpress.XtraEditors.v8.1, Version=8.1.1.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1' or one of its dependencies. The system cannot find the file specified.