T
Taoge
Hi, all
I want to add a row to a bound datagridview, suppose I need copy some
columns of a row from datagridview2 to datagridview1, the user select a row
in datagridview2, click a button, and then copy some columns of the selected
row to a new added row in datagridview1. Bur when I try to add a row in
datagridview1, the following exception throw:
Rows cannot be programmatically added to the DataGridView's rows collection
when the control is data-bound.
How can I add row to the DataGridView programmatically?
Thanks!
I want to add a row to a bound datagridview, suppose I need copy some
columns of a row from datagridview2 to datagridview1, the user select a row
in datagridview2, click a button, and then copy some columns of the selected
row to a new added row in datagridview1. Bur when I try to add a row in
datagridview1, the following exception throw:
Rows cannot be programmatically added to the DataGridView's rows collection
when the control is data-bound.
How can I add row to the DataGridView programmatically?
Thanks!