We are creating a grid based on the following Demo
The model for the demo has the unit price set up as follows:
We are attempting to do the same thing in our application, but when we do so, we receive the following error:
The model item passed into the dictionary is of type 'System.Decimal', but this dictionary requires a model item of type 'System.String'
Am I missing something?
I don't see the model for the demo converting the unit price into a string, but the demo doesn't throw an error.
The model for the demo has the unit price set up as follows:
[Required]
[DisplayName("Unit price")]
[DataType(DataType.Currency)]
[Range(0, int.MaxValue)]
public decimal UnitPrice
{
get;
set;
}
We are attempting to do the same thing in our application, but when we do so, we receive the following error:
The model item passed into the dictionary is of type 'System.Decimal', but this dictionary requires a model item of type 'System.String'
Am I missing something?
I don't see the model for the demo converting the unit price into a string, but the demo doesn't throw an error.