As with any database program, you need to get down to the basic table operations before you do anything fancy. Now is the time for you to put some code behind those buttons and see your window in action.
Knowing the basic table operations is the first thing you need to learn using any database programming. Learning table operations is often referred to as "knowing your CRUD." Let's do it. This is what CRUD means:
Creating a record
Retrieving a record
Updating a record
Deleting a record
You're going to attach your code to the Click
event of the Save button. When you click on the Save button, you will add a record to the PM Vendor Master
table. Open the code window by double-clicking on the Save button. Add the following code to the Save button's Click
event:
//////////////////// SAVE BUTTON ////////////// //The SAVE button SAVES a record to the vendor master table private void btnSave_Click(object sender, EventArgs e) { ...