In this article we will see how to edit and delete records using Editable Datagrid Screen in a LightSwitch application using Visual Studio 2012.
Here you will see how to edit or delete a record using Editable Datagrid Screen in a LightSwitch application using Visual Studio 2012.In my previous article I described how to add a record using Editable DataGrid Screen (see http://www.c-sharpcorner.com/UploadFile/18ddf7/adding-new-records-using-editable-datagrid-screen-in-lightsw/),The following is the procedure for editing a record in the Editable DataGrid Screen.There are two ways by which you can edit a record. Step 1 In the first way, select a record and double-click on that record that you want to edit as in the following.Step 2Now place the different value in the field. If you want to modify any other column then press Tab Key. Once you edit the records, click on the "Save" button to save the modified records.Step 3In the second way, select the row that you want to modify and click on the Edit Button.Step 4A child window appears, modify the record that you want and click the "OK" button.Step 5Press the "Save" button to update the records and you will notice that the record has been modified successfully in the Editable Emp Tables Grid.Delete a RecordThere are two ways to delete a record. Step 6In the first way, select the record that you want to delete and press Delete.Step 7We will see that the record has been deleted.Step 8In the second way, select the row that you want to delete and click on the Delete button.Step 9You will see that the record has been deleted and there is a "x" mark placed at the starting side of the record, which means that the record has been deleted.
Step 10Press the Save button and you will see that the record has been successfully removed.
Printing in C# Made Easy