Michael Damron Home


GridView Sample

GridView sample

I love the GridView control in VS 2005. Like most obects, it is so much better than what is offered from VS 2003.

This example uses a DataTable.


ItemItem Count 
Item 1 70
Item 2 40
Item 3 25




Template Trick
  1. Create a BoundField column.
  2. Type in some header text.
  3. Click on convert to TemplateField.

This will add a label and a text box to the ItemTemplate and EditItemTemplate respectivly for that column.

 
 

 Home | Resume Information | Code Samples | Blog | Links | Feedback