如何显示“添加新记录”在asp.net中的GridView中的标题行之后的按钮 [英] how to display "Add New Record" Button After Header Row in GridView in asp.net

查看:68
本文介绍了如何显示“添加新记录”在asp.net中的GridView中的标题行之后的按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



i只想在gridview中显示添加新记录按钮第一行?

how to display "Add New Record" Button After Header Row in GridView in asp.net.

i want to display "Add New Record" Button only in gridview first row ?

推荐答案

使用模板列。看看这个: http://stackoverflow.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://stackoverflow.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.


这篇关于如何显示“添加新记录”在asp.net中的GridView中的标题行之后的按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆