This Microsoft ASP.NET GRIDVIEWS - HANDLING EVENTS exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl ASP.NET 2.0 USING VB course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
A full answer to this exercise is provided as part of the training course!
| 1) | Download the files needed to start this exercise: exercise-790.zip (and click here if you experience any problems unzipping this file after downloading it). |
| 2) | Using the football teams database (either the one in the folder above or the one you've already added into your project), create a form containing a gridview of teams: |
This gridview lists out all of the records in the Teams table
|
|
| 3) | By intercepting the RowDataBound event of the gridview, add conditional formatting such that all non-premier-division teams are coloured differently: |
The result of our change, for this set of data and using the colour Coral
|
|
| 4) | Save and close down any files that you may have open. |
Thank you for showing an interest in this ASP.NET 2.0 using VB 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.
Recommended sites: C# corner | Computer tutorials | Training classes