Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2320
Dynamically change and Image.Source for an unbound column
posted

I have a grid, that needs to have an image displayed in a column.  This image will be different for each row depending on several other columns in the row. 

Here is my xaml for the unbound column

<igGrid:UnboundColumn Key="Status" HeaderText=" " Width="30">
    <igGrid:UnboundColumn.ItemTemplate>
        <DataTemplate >
            <Image Stretch="Fill" Width="20" Source="" />
        </DataTemplate>
    </igGrid:UnboundColumn.ItemTemplate>
</igGrid:UnboundColumn>

I'm not sure I got the xaml correct but if I hardcode Source property, everything displays properly.

Is there anyway in the InitializeRow function of the grid that I could set the source property on the image for that row?

Any help would be greatly appreciated.