I have a dictionary item as below
Dictionary<string, List<StrikePrice>>
where
public class StrikePrice
{
public string Strike { get; private set; }
public string Price { get; private set; }
public StrikePrice(string strike, string price)
{
Strike = strike;
Price = price;
}
}
and I wish to assign this dictionary to the DataGridView
this.dataGridViewTest.DataSource = listSmiles;
I understand that a dictionary can't be assigned to the the datasource as this doesn't derive from the IList interface.
Is there any way I can assign this dictionary element to the datagrid?