Search code examples
visual-studio-lightswitchlightswitch-2012

Lightswitch AddAndEditNew_Execute()


I need to open the dialog which appears after I click the Plus sign in data grid view. Which means, When i press my button, i need it to appear as if i clicked + button. But now i need to open the grid view and then click on the + button.


Solution

  • Assuming that your screen collection is called "Invoices", in your method code you would simply call

    VB:

    Me.Invoices.AddAndEditNew
    

    C#:

    this.Invoices.AddAndEditNew();