Microsoft Visual Studio
DataGridViews exercise
Average difficulty

This Microsoft Visual Studio DATAGRIDVIEWS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl VISUAL C# 2005 WINDOWS FORMS course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Exercise: Confirmation of deletion of row in DataGridView

A full answer to this exercise is provided as part of the training course!

1) Either create a new form containing a DataGridView listing mortgage applicants, or use one that you have already created (you must have done the exercise to create an SQL Server Express mortgage database first).
2) Attach code so that when a user tries to delete a record, they see a confirmation message:
Exercise screen-shot 1277 This message includes the name of the client to be deleted, and various other enhancements
3) Make sure that if a user chooses No above, the record is not deleted (ie the deletion event is cancelled).
4) Close down any forms that you may have open.

Thank you for showing an interest in this Visual C# 2005 Windows Forms training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.

All content copyright Wise Owl Business Solutions Ltd 2008.  All rights reserved..