Click here to Skip to main content
15,887,947 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a form with a datagridview and some text boxes which is bind to the bindingsource. There are an New button and Save button on the form. I wanted the user to

1. click the New button that will cause grid to go to a new row and the textboxes to go blank (since it is a new row).
2. Next, the user will enter data into the textboxes to for a new record
3. Finally click Save button to save the record and update to database

I have no idea on the code for the Add and Save buttons.

Can anyone help me?

Thanks,
SKPaul
Posted
Comments
Sergey Alexandrovich Kryukov 21-Feb-12 12:37pm    
"I have no idea" is not descriptive. What is the problem?
And what do you mean by "code for the Add and Save button"? This is not a code for a button... The button code already exists, you don't need to add anything to it.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900