Jambo,
What I need is to have values held…be pasted on to the (New Record) Row of a Bound DatagridView on to respective columns programmatically.
The closest syntax could be as seen below but this is only applicable for unbound DatagridView's.
I am not comfortable enough to work with unbound controls in updating datasets.
The unhandled error msg. on attempting to use the code above on a bound DatagridView is: rows cannot be added on to bound DatagridView.
I believe there is a way perhaps through the BindingSource or TableAdapter which I could not pick. I tried the “Insert” method on the TableAdapter, this resulted in to direct update. Bypassing the user save button and not immediately viewed.
Please guide, thank you
PG
What I need is to have values held…be pasted on to the (New Record) Row of a Bound DatagridView on to respective columns programmatically.
The closest syntax could be as seen below but this is only applicable for unbound DatagridView's.
Code:
With DatagridView1.Rows
.ADD (col1, col2, col3, etc)
End With
I am not comfortable enough to work with unbound controls in updating datasets.
The unhandled error msg. on attempting to use the code above on a bound DatagridView is: rows cannot be added on to bound DatagridView.
I believe there is a way perhaps through the BindingSource or TableAdapter which I could not pick. I tried the “Insert” method on the TableAdapter, this resulted in to direct update. Bypassing the user save button and not immediately viewed.
Please guide, thank you
PG