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.
Autosizing of cell を検索しましたが、特定のセルのデータサイズに応じて (列幅が固定されるため、高さに関して) 特定のセルを自動サイズ調整するにはどうすればよいですか? datagridview のいくつかのプロパティを使用して実行できますか?
このコードを使用します。それはあなたを助けることができます
dataGridView1.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells;
ここで、0 は列インデックスです