Data-Bound Controls
You can bind data to a limited number of controls, but we will focus on some of the more common controls, including the data grid, the data list, and a few others. Let’s start out by taking a closer look at these data-bound controls and where you might have problems.
The Data Grid Control
The data grid control is a great new addition to the tool box. This control enables you to create a spreadsheet-like page of data and then manipulate the data as you need to. Listings 10.1 and 10.2 show a simple data grid control in C# and Visual Basic .NET. Then we’ll identify some areas where you might need to implement some debugging techniques.
Listing 10.1. Simple Data Grid Control (C#)
private void Page_Load(object sender, System.EventArgs ... |
Get Debugging 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.