
Last month (March 2001) I covered the basic techniques of binding ASP.NET server controls to fields of Microsoft® .NET managed data sources. In particular, I focused on the main features of the DataGrid control, which is probably the richest of all the ASP.NET list-bound controls. Unless you have very special needs, using a DataGrid is as easy as binding the .NET data source with the control and setting the size of the page. The control is capable of auto-generating the columns and exposes a wide variety of graphical properties. As a result, you can get a table report like the one in Figure 1 with surprisingly simple server-side code.
|