I have a list of mail I generate, and displayings some details into a dataGrid.
Some will works, some will be in errors.
I want to display, into the last datagrid column, a button, if the process successed, or an image if the process failed.
So, I got this with juste a button :
<sdk:DataGridTemplateColumn Header="Voir">
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Name="btOpen"
Click="btOpen_Click"
IsEnabled="True"/>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
This button will open the document.
But as I said, some process can fail, so instead of a button, I must display an image.
Can I add an image into my datagridTemplateColumn, and then displying one of them depending on the success or fail of the process(easy to know)?
If I can't, how can I do what I want here? Can I do it without adding to different columns?
Thank you.