Hi,
I have a database column which is a uniqueidentifer type (its a Guid) within SQL Server and I cannot currently get it to work as part of the filter definitions for the GridView. Currently I try to treat it as a string as below but then the application crashes and an error is thrown something like
No coercion operator is defined between types 'System.Guid' and 'System.String'.
This is how i have it defined in the xaml up til now
The options I would like to use with this are is equal and not equal. these are probably the only ones that make sense for this type.
How can I use a uniqueidentifer with the Data Filter?
Thanks for your help
Doug
I have a database column which is a uniqueidentifer type (its a Guid) within SQL Server and I cannot currently get it to work as part of the filter definitions for the GridView. Currently I try to treat it as a string as below but then the application crashes and an error is thrown something like
No coercion operator is defined between types 'System.Guid' and 'System.String'.
This is how i have it defined in the xaml up til now
<
dataFilter:ItemPropertyDefinition
PropertyName
=
"Guid"
PropertyType
=
"{Binding String, Source={StaticResource Types}}"
DisplayName
=
"Guid"
/>
The options I would like to use with this are is equal and not equal. these are probably the only ones that make sense for this type.
How can I use a uniqueidentifer with the Data Filter?
Thanks for your help
Doug