一些些的code、一點點的Life,這就是生活。
Datagranview 欄位不想顯示就改
.Visible = False ‘
————————————————————
VB.NET DataGridView 設定欄位寬度,並能自動換行
在 DataGridView 中修改
‘設定自動設定欄位高度
AutoSizeRowsMode = DisplayCells
再程式中設定
‘設定寬度
Me.DataGridView1.Columns(“column_name”).Width = 255
‘設定能夠換行
Me.DataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True
————————————————
一個不務正業,甚麼科技產品都玩的網路宅宅。 If you want to find me,that's easy! I will always on the Internet. so just find me, follow me. I will show you everything fun.