- Creation of Dadagrid template columns
Dadagrid is a very important control in ASP.NET programming, which provides great convenience for improving its expression. In addition to direct binding to the data source, we can also customize the column of the DataGrid through the column binding template to display data according to the format we set. For example, there is a field f_demoImage in the data table to store the path of the image (including the image file name), in order to display the actual picture in the DataGrid Cell, we can define a template column, then give the column to the value of the field f_demoimage, You can display pictures in the DataGrid Cell.
! WebForm1.aspx file: <% @ Page language = "c #" Codebehind = "Wizard_select_template.aspx.cs" AutoEventWireup = "false" Inherits = "WebHatcher.WebForm1"%>