Binding Navigator Add New Item  
Author Message
Alagu Thirunavirkarasu





PostPosted: Visual C# Express Edition, Binding Navigator Add New Item Top

Hi,

I am trying to mimic a data entry form using the binding navigator.

In my Parent Form I shall have a button called "create", When user click this, a new form will show up. This actually contains a binding navigator showing all the records from the database. But I will hide all these binding navigator so that the forms appears as a new data entry form. (I will just add a new button "Save")

My Problem now is, On Form Loading I need to trigger the BindingnavigatorAddNewItem event programatically so that a new records with empty values for the text are shown to the user to fill up.

After keying in the informations and when the user clicks the save button, I need to trigger the event, BindingnavigatorSaveItem event

Any Ideas on How to go about this.

Thanks in Advance.




Visual Studio Express Editions17  
 
 
Alagu Thirunavirkarasu





PostPosted: Visual C# Express Edition, Binding Navigator Add New Item Top

I managed to solve it by using the following 2 line of codes.

bindingNavigatorSaveItem.PerformClick();
and
bindingNavigatorAddNewItem.PerformClick();

Thanks