public void FillGrid(Dictionary <string, T> list) { DataTable dt = DisplayAsTableClass.ToTable <T>(list.Values.ToList <T>()); dg_Datas.DataSource = dt; dg_Datas.Refresh(); }
void refreshGrid(Dictionary <string, T> alllist) { List <T> list = alllist.Values.ToList <T>(); DataTable dt = DisplayAsTableClass.ToTable <T>(list, true, true); this.dataGridView1.DataSource = dt; this.dataGridView1.Refresh(); }