Hi,
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?
Hi Nikos,
the bug was logged as WJ-8598 and is fixed in our latest Wisej development build (1.4.53).
Best regards
Frank
Ok Luca,
I can use your way to add record to my tables until you fix it,
I never used the tables to add the records but with this way i can use less code
Thank you for your support
I can reproduce with EndEdit(). You can comment it out, the result is the same. We’ll fix asap.
Hi
I have the latest version 1.4.50.0 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.AddNew
BS.Current(“ID”) = 1
BS.Current(“NAME”) = “Peter”
BS.EndEdit
On Datagrid i have two rows
Change your sample as bellow and run it
// My way
bs.AddNew();
DataRowView cur = (DataRowView)bs.Current;
cur.Row[“ID”] = “1”;
cur.Row[“NAME”] = “Peter”;
bs.EndEdit();
//Your Way
//dt.Rows.Add(4,”Name”);
Hi Nikos,
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.
Best regards
Frank
Please login first to submit.