开发者

DataGridViewCheckboxCell making new row when checked for some reason

开发者 https://www.devze.com 2023-01-04 18:32 出处:网络
I have an application in VB 2008 Expre开发者_如何学JAVAss that uses a DataGridView to display rows of information. I have a DataGridViewCheckboxCell on each row for selecting the row so the user can m

I have an application in VB 2008 Expre开发者_如何学JAVAss that uses a DataGridView to display rows of information. I have a DataGridViewCheckboxCell on each row for selecting the row so the user can mass delete the selected rows. For some reason, whenever I try to select a row via checkbox it adds another row to the DataGridView, is there anyway to disable this?


You just need to set AllowUserToAddRows = False on the DataGridView.

0

精彩评论

暂无评论...
验证码 换一张
取 消