The DataGrid Web server control is a multi-column, data-bound grid. Extensive customization is available at design-time using the Property Builder dialog box. At design-time you can build columns that display and edit data, columns that contain Edit, Update, Cancel, and Select buttons, columns that contain custom buttons, and template columns. You can then lay out the template columns in template-editing mode.
The following topics provide information that you will find useful in learning to work with the DataGrid control.
In This Section
- Introduction to the DataGrid Web Server Control
- Background information on the DataGrid Web server control, including what you can do with it and an overview of its features.
- DataGrid Columns
- Describes the different types of columns you can add to a DataGrid control.
- Adding DataGrid Web Server Controls to a Web Forms Page
- Gives directions for adding a DataGrid Web server control to a Web Forms page and setting the required properties to make it work.
- Adding Template Columns to a DataGrid Web Server Control
- Gives directions for creating columns with a custom-defined combination of HTML text and controls.
- Adding Bound Columns to a DataGrid Web Server Control
- Gives directions for selecting which data fields are displayed as columns.
- Adding Button Columns to a DataGrid Web Server Control
- Gives directions for adding buttons to individual items that invoke custom functionality for list items.
- Adding Hyperlink Columns to a DataGrid Web Server Control
- Gives directions for creating a column that displays data as hyperlinks to other pages.
- Adding Sorting to a DataGrid Web Server Control
- Gives directions for allowing users to sort the data based on a particular column.
- Allowing Users to Delete Items in a DataGrid Web Server Control
- Gives directions for allowing users to delete either individual items or a batch of items.
- Allowing Users to Edit Items in a DataGrid Web Server Control
- Gives directions for allowing users to put a DataGrid control row into edit mode.
- Allowing Users to Select Items in a DataGrid Web Server Control
- Gives directions for providing a Select button that users can click to highlight an item.
- Specifying Grid Item Format in a DataGrid Web Server Control
- Gives directions for dynamically controlling the contents and appearance of items.
- Paging Behavior in DataGrid Web Server Controls
- Describes the methods available for implementing paging of the grid.
- Specifying Paging Behavior in a DataGrid Web Server Control
- Gives directions for adding paging to the grid.
- Creating Templates Programmatically in the DataGrid Control
- Gives directions for creating a template class that you can use to add template columns to the DataGrid control at run time.
Related Sections
- Programming Web Forms
- Suggests additional topics on working with Web Forms in code.
- Introduction to ASP.NET Server Controls
- Provides background information on working with controls that you can use on Web Forms.