且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何显示“添加新记录”在asp.net中的GridView中的标题行之后的按钮

更新时间:2023-12-06 13:33:46

使用模板列。看看这个: http://***.com/questions/1486062/how-do-i-add-a-column-with-buttons-in-to-a-gridview-in-asp-net [ ^ ]



要在第一行只有一个按钮,您可以在第一行放置一些标识符。只有在检测到标识符时才能使按钮可见。
Use a template column. Take a look at this: http://***.com/questions/1486062/how-do-i-add-a-column-with-buttons-in-to-a-gridview-in-asp-net[^]

To only have a button in the first row, you may place some identifier on the first row. Make the button visible only when you detects the identifier.