In Tip#64, we showed you how to convert a GridView's bound fields into template fields. In this tip, we will show you how to quickly create a GridView that is hooked up to a SQL table.
Typically, if you want a GridView then you need to add it to the page, and then add the datasource and hook the two up through a wizard. But here's a much quicker way to create and hookup the two.
Figure 1 (click to enlarge)
From here on, you can fine tune the GridView and datasource to meet your needs.
Roger Wong SDET | Visual Web Developer