コード例 #1
0
        public void FillGrid(Dictionary <string, T> list)
        {
            DataTable dt = DisplayAsTableClass.ToTable <T>(list.Values.ToList <T>());

            dg_Datas.DataSource = dt;
            dg_Datas.Refresh();
        }
コード例 #2
0
        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();
        }