Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はCheckBoxListアイテムが少ない を持っています。これらのアイテムを のヘッダーにしたいGridView。そして、それはアイテムの変更に応じて動的に変化するはずCheckBoxListです 前もって感謝します。
CheckBoxList
GridView
DataTable dt = new DataTable(); for (int checked_items = 0; checked_items < checkedListBox1.CheckedItems.Count; checked_items++) { dt.Columns.Add(checkedListBox1.CheckedItems[checked_items].ToString()); } dataGridView1.DataSource = dt;