Hi this should be quite simple
I have form1 with a datagrid. At the moment when someone clicks on a cell on datagrid view it filters a form2 then opens it. which works great.
However I now want a button to add a new product. So I instead of using filter the form I want it to go to the add new record,
basically just do the same thing as clicking on the yellow cross in the navigation bar but in code
Windows OS.NET Programming
Last Comment
13598
8/22/2022 - Mon
13598
bindingsource.addnew ?
taz8020
ASKER
Hi 13598
I tried productsbindingsource.addnew but just went to the first record. do you no why this would this happen.
13598
Could you put it in a try/catch statement and see if it gives you a clue, as in:
try
productsbindingsource.addnew
catch ex as exception
messagbox.show(ex.tostring)
end try
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.