DataGridView 在新增資料行DataGridViewButtonColumn的時候,會產生一個新的Row

造成DataGridView的count一開始就是1

 

 

 

簡單的解決方式就是把屬性AllowUserToAddRows改成false

  

文章標籤
全站熱搜
創作者介紹
創作者 sendohlun 的頭像
sendohlun

廣度與深度

sendohlun 發表在 痞客邦 留言(0) 人氣(328)