close

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

造成DataGridView的count一開始就是1

擷取1  

擷取  

 

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

擷取22

擷取2  

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 sendohlun 的頭像
    sendohlun

    廣度與深度

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