System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Nullable`1[System.Int32]' and 'System.Uri'. Consider using Converter property of Binding. BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=17096567); target element is 'Hyperlink' (HashCode=15663836); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='2' BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=17096567); target element is 'Hyperlink' (HashCode=15663836); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Nullable`1[System.Int32]' and 'System.Uri'. Consider using Converter property of Binding. BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=19651376); target element is 'Hyperlink' (HashCode=27863937); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='3' BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=19651376); target element is 'Hyperlink' (HashCode=27863937); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Nullable`1[System.Int32]' and 'System.Uri'. Consider using Converter property of Binding. BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=42644663); target element is 'Hyperlink' (HashCode=2701015); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Nullable`1[System.Int32]' and 'System.Uri'. Consider using Converter property of Binding. BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=48257652); target element is 'Hyperlink' (HashCode=65737292); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='5' BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=48257652); target element is 'Hyperlink' (HashCode=65737292); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Nullable`1[System.Int32]' and 'System.Uri'. Consider using Converter property of Binding. BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=31665688); target element is 'Hyperlink' (HashCode=33459681); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Nullable`1[System.Int32]' and 'System.Uri'. Consider using Converter property of Binding. BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=16555740); target element is 'Hyperlink' (HashCode=62618006); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='7' BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=16555740); target element is 'Hyperlink' (HashCode=62618006); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 1 : Cannot create default converter to perform 'one-way' conversions between types 'System.Nullable`1[System.Int32]' and 'System.Uri'. Consider using Converter property of Binding. BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=14783937); target element is 'Hyperlink' (HashCode=46245228); target property is 'NavigateUri' (type 'Uri')
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='8' BindingExpression:Path=ID; DataItem='EmployeeInfo' (HashCode=14783937); target element is 'Hyperlink' (HashCode=46245228); target property is 'NavigateUri' (type 'Uri')
Excepción producida: 'System.NotSupportedException' en System.dll
System.Windows.Data Error: 23 : Cannot convert '<null>' from type '<null>' to type 'System.Uri' for 'en-US' culture with default conversions; consider using Converter property of Binding. NotSupportedException:'System.NotSupportedException: No se puede convertir UriTypeConverter desde (null).
en System.ComponentModel.TypeConverter.GetConvertFromException(Object value)
en System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
en System.UriTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
en MS.Internal.Data.DefaultValueConverter.ConvertHelper(Object o, Type destinationType, DependencyObject targetElement, CultureInfo culture, Boolean isForward)'
|
<syncfusion:SfDataGrid Name="dataGrid"
AutoGenerateColumns="False"
CellTapped="DataGrid_CellTapped"
ItemsSource="{Binding Employees}">
<syncfusion:SfDataGrid.Columns>
<syncfusion:GridTemplateColumn MappingName="ID" AllowEditing="False">
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding ID}" TextDecorations="Underline" Cursor="Hand" >
<TextBlock.Style>
<Style TargetType="TextBlock">
<Setter Property= "Foreground" Value="Blue"/>
<Style.Triggers>
<Trigger Property ="IsMouseOver" Value="True">
<Setter Property= "Foreground" Value="Red"/>
</Trigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn>
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid> |