Approved
Last Updated: 29 Mar 2016 11:55 by ADMIN
ADMIN
Dimitar
Created on: 19 Jan 2016 10:43
Category: DataEntry and DataLayout
Type: Bug Report
2
FIX. RadDataEntry - when RadDataEntry and RadGridView are bound to the same binding source the RadDataEntry is not updated when new row is added.
To reproduce:
- Add RadBindingNavigator, RadDataEntry and RadGridView to a form.
- Bind them to the same BindingSource.
- Add a new row with the binding navigator.
- The data entry still dispalys the previous record. 


Workaround:

radBindingNavigator1.BindingNavigatorElement.AutoHandleAddNew = false;
radBindingNavigator1.BindingNavigatorElement.AddNewButton.Click += AddNewButton_Click;

void AddNewButton_Click(object sender, EventArgs e)
{
    employees.AddNew();
    source.ResetBindings(false);
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
2 comments
ADMIN
Stefan
Posted on: 09 Feb 2016 12:41
Hi Erik,

could you please elaborate on your suggestion. Is it addition to the workaround and where it should be added?

Thank you.
Eric
Posted on: 19 Jan 2016 13:43
Add the following line to set focus on the new item:
bindingSource1.MoveLast();