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.
gridViewの列(またはいくつかの列)を動的に非表示にする方法はありますか?
クリックまたはイベントにいくつかの値を割り当てて、それらが発生したときに次のように記述できるようにする必要があります。
GridView1.Columns[YouEventValue].Visible = false;
YourEventValueは、発生したイベントに基づいて番号が割り当てられる変数です。