How can I add an image column to SfDataGrid. I have bound the SfDataGrid to a collection, but the Image column does not appear.
<syncfusion:SfDataGrid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ItemsSource="{Binding Assets}" />
public class AssetViewModel : ObservableObject
{
private BitmapImage image;
public BitmapImage Image
{
get { return image; }
}
private string asset;
public string Asset
{
get { return asset; }
set
{
asset = value;
image = new System.Windows.Media.Imaging.BitmapImage(new Uri("https://cryptoicons.org/api/icon/"+asset+"/50"));
RaisePropertyChangedEvent(nameof(Asset));
RaisePropertyChangedEvent(nameof(Image));
}
}
}