Controls You Can Use on Web Forms ASP.NET Data Controls GridView Control
A BoundField in a GridView control enables authors to specify which of the fields 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:GridView id="myGrid" runat="server" autogeneratecolumns=false ... >
asp:BoundField
<columns> <asp:boundfield headertext="Type" datafield="ProductType" /> ... <asp:boundfield headertext="Price" datafield="UnitPrice" htmlencode=false dataformatstring="{0:c}" itemstyle-horizontalalign="right" /> </columns>
For additional information, see BoundField in the class library.
Adding Button Fields to a GridView Control Adding Hyperlink Fields to a GridView Control Adding Template Fields to a GridView 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