Changing text of an autogenerated select column of a gridview in asp.net - How?

前端 未结 5 1120
遥遥无期
遥遥无期 2020-12-20 19:59

I would like to change the text of the autogenerated \"select\" column in an ASP.NET GridView control. The text needs to be changed to the value of

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-20 20:27

    Use the TemplateField and place into it buttons or linkbuttons with appropriate CommandName property: ButtonField.CommandName Property You may set this button text using DataBinder.Eval method.

提交回复
热议问题