Auto insert of new row doesn't show for datagridviewbutton column

78 Views Asked by At

I have a question and can't seem to find the solution. I have datagridview columns with multiple types:

  • Textbox
  • Checkbox
  • Button

I used dgv1.AllowUserToAddRows = true;. And the problem is new row doesn't show when the button column is clicked. For textbox and checkbox columns, it is working.

Please help me on this.

Thanks.

1

There are 1 best solutions below

0
newbie On

Just found an alternative solution. Instead of Edit Row by having dgv1.AllowUserToAddRows = true, i have inlcuded another button for dgv1.rows.add(). This could already work. Thank you.

Here is the link:Rows cannot be programmatically added to the datagridview's row collection when the control is data-bound