开发者

DataGridViewCheckboxCell making new row when checked for some reason

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜