Controls You Can Use on Web Forms ASP.NET Data Controls DataGrid Control
A BoundColumn in a DataGrid control enables authors to specify which of the columns from the data source will display and in what order, as well as to customize information such as the column’s header text and data display format.
<asp:datagrid id="myGrid" runat="server" autogeneratecolumns=false ... >
asp:BoundColumn
<columns> <asp:boundcolumn headertext="Type" datafield="ProductType" /> ... <asp:boundcolumn headertext="Price" datafield="UnitPrice" htmlencode=false dataformatstring="{0:c}" itemstyle-horizontalalign="right" /> </columns>
For additional information, see BoundColumn in the class library.
Adding Button Columns to a DataGrid Control Adding Hyperlink Columns to a DataGrid Control Adding Template Columns to a DataGrid Control
© 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