Search code examples
wpfxceed-datagrid

How to show an image from url in xceed grid (community edition)?


How to show an image from url from external website in xceed grid community edition in WPF application?

I have tried may approaches but none work. Here is one of my attempt.

                    <xcdg:Column Title="ImgUrl"
                                  AllowSort="False"
                                  FieldName="ImgUrl">
                        <xcdg:Column.CellContentTemplate>
                            <DataTemplate>
                                <Image x:Name="img" Source ="{Binding}" />
                            </DataTemplate>
                        </xcdg:Column.CellContentTemplate>
                    </xcdg:Column>

Interestingly following works but binding does not work

                   <Image x:Name="img" Source ="http://somesite.com/image.jpg" />

An example will be useful.


Solution

  • It turned out that website hosting url had SSO authentication enabled and that didn't work from WPF client. WPF cannot handle SSO authentication like browser. So the problem is not related to xceed data grid instead is more of authentication related.