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.

If you liked this post, please click on one of the advertisements below. Thanks!


2 Responses to “Building A SPGridView Control: ASPGridView”

  1. 1 Zullu

    Erik,
    Your series on SPGridView is a definite good work.
    Eagerly waiting for the next two Parts 🙂
    Will help my current work if you post it sooner.
    Thanks,
    Zullu.

  2. 2 Erik Burger

    Hi Zullu,

    Thanks for your kind words. As I am a little short on time at the moment the next article could take a little while longer to post. Is there anything in particular that you are looking for or are coming up against now that impacts your work? If you want, please feel free to send me an e-mail at eburger at reversealchemy dot net and I can see what I can do to help you out without you having to wait for the next installment.

    Regards,

    Erik

Leave a Reply


*