Reputation: 67
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.
Upvotes: 1
Views: 415
Reputation: 3879
Assuming that your screen collection is called "Invoices", in your method code you would simply call
VB:
Me.Invoices.AddAndEditNew
C#:
this.Invoices.AddAndEditNew();
Upvotes: 2