Create a DataGrid control in the postcode

xiaoxiao2021-03-06  84

Create a DataGrid control in the postcode

This article describes how to create DataGrid with code and have four bindings and a template column, support the sorting function.

code show as below:

C #

CreateDataGrid.aspx

<% @ Page language = "c #" enableviewState = "false" codeBeHind = "createDataGrid.aspx.cs"

Autoeventwireup = "true" inherits = "aspxwebcs.mydataGrid"%>