When I add a new row to a binding source that is used in a datagrid then appears two Rows on the grid, one row with my data and another empty row, why happen this?
I have the latest version 184.108.40.206 and use Visual Basic
I use the bindingsource to add new rows like this
Dim DS as new dataset
Dim DG as new datagridview
Dim BS as new bindingsource(DS,”MyTable”)
DG.DataSource = BS
BS.Current(“ID”) = 1
BS.Current(“NAME”) = “Peter”
On Datagrid i have two rows
Change your sample as bellow and run it
// My way
DataRowView cur = (DataRowView)bs.Current;
cur.Row[“ID”] = “1”;
cur.Row[“NAME”] = “Peter”;
I´ve tried to reproduce in a simple sample, but failed: http://wisej.s3.amazonaws.com/support/attachments/Binding.zip
Can you please compare with your code and also make sure that you are using the latest Wisej build ?
Thanks in advance.
Please login first to submit.