BLOGS BY TOPIC
BLOGS BY AUTHOR
BLOGS BY YEAR
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.
- An introduction to GridView Controls (this blog)
- Traps to Avoid when using Gridviews
- Creating GridView Controls
- Formatting Gridviews
- Template Fields / Template Columns
- Conditional formatting (RowDataBound Events)
- You clicked on a Gridview? The RowCommand Event
- Sorting a Gridview
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:
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.