There are quite a number of posts concerning the SPGridView. The ones I would particularly recommend are those of Paul Robinson and Robert Fridén. However, most posts are only concerned with a particular feature of the SPGridView, like paging, sorting and menu fields. So I gathered it was a good idea to try and combine these posts and my own experiences into a series.
While I was building the ASPGridView my goal was to build a composite control that I could simply drop into our user control code. I will use this project as a guide while writing this series. As a result, I will not only focus on the features of the SPGridView but also on ways to make these features configurable and extensible.
Part 1: Introducing the SPGridView gives an overview of the SPGridView and show you how to do some simple data binding. As we’ll be using the ObjectDataSource as the vehicle for our data, we’ll get sorting and paging for practically free.
Part 2: Filtering discusses how to get filtering working in the SPGridView.
Intermezzo: TemplateFields and the RowCommand Event goes slightly off course by addressing a problem with the RowCommand event not firing from inside a TemplateField.
For the next posts in the series I have the following in mind:
Part ?: Adding a Menu will introduce the MenuField control, show how to use it in our SPGridView and how to make it extensible when used in a composite control.
Part ?: Controlling your Columns will discuss a method of controlling the behaviour of the columns of the SPGridView, showing how to hide columns you do not want to show (but still want to use) and how to create calculated columns.
There probably some more topics I could (and will) come up with as time passes but I figure that this is a good set of topics to start with. If you don’t see anything you would like to see, let me know and I will do my best to accommodate.