TIL

Today I Learned. 知ったこと、学んだことを書いていく

DataGridViewで最後の列を横いっぱいに表示する - VB.NET

Dim lastColIndex As Integer = DataGridView1.Columns.Count - 1
Dim lastCol = DataGridView1.Columns(lastColIndex)
lastCol.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill

参考文献

c# - How the Rightmost column of a DataGridView could fill the remaining part of the form? - Stack Overflow