Using GridView controls to display data in ASP.NET
Part one of an eight-part series of blogs

The gridview control is at the heart of every ASP.NET webpage, displaying rows of data and allowing you to add, edit and delete records. This lengthy blog explains how to master this complex control.

  1. An introduction to GridView Controls (this blog)
  2. Traps to Avoid when using Gridviews
  3. Creating GridView Controls
  4. Formatting Gridviews
  5. Template Fields / Template Columns
  6. Conditional formatting (RowDataBound Events)
  7. You clicked on a Gridview? The RowCommand Event
  8. Sorting a Gridview

This blog is part of a larger online ASP.NET online tutorial.  Wise Owl's main business is running classroom-based training courses - have a look at our other .NET courses.

Posted by Andy Brown on 24 September 2012

You need a minimum screen resolution of about 700 pixels width to see our blogs. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

An introduction to GridView Controls

What is a gridview?  Basically, it's like a miniature spreadsheet stuck within a webpage:

Gridview listing tasks to do

This gridview - like most gridviews - is displaying records from a table.


This blog will show you how to create, format and sort gridviews, and how to react to things which happen on them.

Gridviews are at the heart of ASP.NET; it's hard to think of a website which wouldn't use them.

This blog is opinionated - it presents my personal view of the easiest way to create an ASP.NET website.  Let's start by showing some things to avoid when displaying data on a webpage.


This blog has 0 threads Add post