Changing the column name in GridView using HTML or C#

前端 未结 2 1852
离开以前
离开以前 2021-01-21 03:57

The point is I have used GridView in my project. And I have assigned the Values to GridView using the SQLConn, SQlDataAdapter

2条回答
  •  旧时难觅i
    2021-01-21 04:15

    Use your own column of GridView and can assign the Header text of the gridview. Go to Properties of the GridView-->Columns-->Add the column and set the DataBound to the DB Column name and Header Text Property.

    And Dont forget to set the AutoGeneratedColumns property to false of the gridview

提交回复
热议问题