asp.net.ph

Skip Navigation Links

DataGrid Web Server Control

Web Forms Server Controls   Controls You Can Use on Web Forms   ASP.NET Data Controls


The DataGrid displays items from a data source into a table, and allows users to select, sort, page, and update the data.

The following topics provide information that you will find useful in learning to work with the DataGrid control.

In This Section


Content
Introduction to the DataGrid Control
A brief overview of the DataGrid control’s features, and what you can do with it.
Adding DataGrid Controls to a Web Forms Page
Gives directions for adding a DataGrid control to a Web Forms page and setting the required properties.
Adding Bound Columns to a DataGrid Control
Specifying which columns are displayed in the DataGrid control.
Adding Button Columns to a DataGrid Control
Adding buttons to individual rows in the DataGrid that invoke custom functionality.
Adding Hyperlink Columns to a DataGrid Control
Creating a column in the DataGrid that displays data as hyperlinks to other pages.
Adding Template Columns to a DataGrid Control
Creating custom-defined columns in the DataGrid with a combination of HTML, text and controls.
Adding Sorting to a DataGrid Control
Allowing users to specify the sorting order of the DataGrid content.
Specifying Paging Behavior in a DataGrid Control
Adding paging functionality to the DataGrid control.
Specifying Row Format in a DataGrid Control
Dynamically controlling the contents and appearance of DataGrid rows.
Allowing Users to Select Items in a DataGrid Control
Providing functionality wherein users can click to highlight a DataGrid row.
Allowing Users to Edit Items in a DataGrid Control
Providing functionality wherein users can modify a record using a DataGrid.
Allowing Users to Delete Items in a DataGrid Control
Providing functionality wherein users can remove a record using a DataGrid.
Responding to Control Events in DataGrid Items
Responding to events that are raised by controls in a DataGrid row.

Related Sections


Content
Comparing the GridView and DataGrid Controls
Looks at the similarities and differences between a DataGrid and a GridView.
Programming Web Forms
Suggests additional topics on working with Web Forms in code.

See Also

DataGrid Class   DataGrid Control Syntax



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note