Working with Lists and Grids

In addition to text input fields, a frequent method of accepting user input is to display a list and allow the user to select one or more items. Even if you do not require the user to select a list item, lists can be used to display information in an organized manner. The Web Forms model contains several controls suitable for displaying all types of lists, everything from a single column of string values to an editable, data-bound grid. In this section we will cover the ASP.NET Server controls that allow you to add lists and grids to your program.

Creating Simple Lists

If you need to display a simple list of strings for the user of a Web forms application, you have a variety of controls to choose from:

  • ListBox ...

Get Special Edition Using Microsoft® Visual Basic® .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.