Dictionary dict = new Dictionary();for (int i = 0; i < 100; i++){ dict.Add(i, i.ToString());}dataGridView1.DataSource = dict.ToArray();