我有一个<条码>DataGridView,我正在从方案上增加行文。
通常,当我增加数据第一行时,<代码>补选代码> 火灾
但是,我的Grid被困在形式上和底部,当我把形式缩小,使Grid的高度为零时,当选的<<<>条/代码>活动在增加第一行时不会被击。
Is this by design? It doesn t seem logical to me.
With DataGridView1
.Rows.Clear()
.Columns.Clear()
.Columns.Add("Col1", "Col1")
.Columns.Add("Col2", "Col2")
uncomment the following line and the SelectionChanged event does not fire
.Height = 0
.Rows.Add("foo", "bar")
End With