Binding a Dictionary to the DataGridView in C#?
问题 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