Summary

The DataGrid is one of the most powerful and versatile server controls shipped with ASP.NET. It includes properties and methods for altering the display of data, paging through data, and sorting data. Additionally, it has properties and methods for updating data and refreshing the data source. Those properties and methods will be covered in the next chapter.

In this chapter, you learned:

  • How to work with DataGrid properties to alter the appearance of the rendered table.

  • How to use the DataGrid paging properties and events with both built-in and custom paging.

  • How to enable column sorting in the DataGrid.

  • How to use DataGrid BoundColumns.

Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.