在Gridview的顶部或底部添加一个按钮(在gridview标签内) [英] Adding a Button on top or bottom of Gridview(inside the gridview tags)

查看:176
本文介绍了在Gridview的顶部或底部添加一个按钮(在gridview标签内)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是gridview的新手..我想在gridview的顶部添加一个按钮,以便我可以在gridview中编辑选定的行.谁能帮忙..


gridview布局
--------------------------------------------
|编辑|删除|
--------------------------------------------
chk盒| ID |客户| NAME |电话|
--------------------------------------------
| | | | |
| | | | |
| | | | |
| | | | |
-------------------------------------------

我不确定天气是否可以在gridview标记内的列顶部添加按钮(编辑和删除)....

i am new to gridview..i want to add a button on top of gridview with wich i can edit the selected row in the gridview. can any one help..


gridview layout
--------------------------------------------
|EDIT | DELETE |
--------------------------------------------
chk box | ID | CUST | NAME | PHONE |
--------------------------------------------
| | | | |
| | | | |
| | | | |
| | | | |
-------------------------------------------

i am not sure weather i can add button(EDIT and DELETE) on top of columns inside the gridview tag....

推荐答案

您可以为此使用BindingNavigator,我敢肯定您会喜欢的.除了现有的按钮之外,如果您选择了右侧的下拉列表,也可以随时添加自己的按钮.
You can use BindingNavigator for this purpose, I''m sure you''ll love it. In addition to existed buttons you can always add your own if you chose the dropDown list on the right.


这篇关于在Gridview的顶部或底部添加一个按钮(在gridview标签内)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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