WPF DataGrid DataGridHyperlinkColumn bound to Uri

Posted by MicMit on Stack Overflow See other posts from Stack Overflow or by MicMit
Published on 2010-03-19T03:24:43Z Indexed on 2010/03/19 3:31 UTC
Read the original article Hit count: 1019

Filed under:
|

No problem when binding to a property of string type ( "http://something.com" ). However , I seem to have seen in old examples direct binding to Uri property.

        <dg:DataGridHyperlinkColumn IsReadOnly="True"
                    Header="Uri" Binding="{Binding Path=NavigURI}" />

NavigURI is Uri . More recent docs seem to require a converter

<DataGridHyperlinkColumn Header="Email" Binding="{Binding Email}"  ContentBinding="{Binding Email, Converter={StaticResource EmailConverter}}" />

I tried with a converter also, but in both cases with or without converter column is empty. Debugging showed that value passed to "Convert" method is always null. My question : if for any reason I want binding to Uri property , is it feasible for the latest DataGrid from Codeplex ?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about datagrid