带检查选项的asp gridview [英] asp gridview with check option
本文介绍了带检查选项的asp gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Gridview中创建一个带有gmail inbox等所有检查选项的复选框,并在gridview中绑定数据?
gridview具有编辑选项.
如果单击主键(书号),它将作为查询字符串传递到另一页.
我想将书夹隐藏在gridview中并传递到编辑页面.
有人可以帮我吗?
How can I create a check box in gridview with all check option like gmail inbox and bind the data in gridview?
The gridview has edit option.
If I click the primary key(bookid) it will pass to another page as query string.
I want to hide the bookid in gridview and pass to the edit page.
Can anybody help me?
推荐答案
看看下面的文章,它准确地解释了您的要求
选择/取消选择GridView中的所有复选框
Have a look to the following article, which exactly explains what you require
Selecting / Deselecting all the CheckBoxes Inside a GridView
我如何在Gridview中创建带有gmail收件箱之类的所有检查选项的复选框并绑定数据"
使用 CheckBoxField [使用jQuery取消选中Gridview中的所有复选框 [ ^ ]
"gridview具有编辑选项"
使用编辑,更新,取消CommandField [ ^ ]用于添加GridView的编辑功能.
如果我单击主键(bookid),它将作为查询字符串传递到另一个页面.但是我想将bookid隐藏在gridview中并传递到编辑页面."
我没完全明白你要做什么.
我建议您先阅读本教程,然后再开始使用GridView进行编程: GridView全部合为一体 [ ^ ]
希望这会有所帮助!
"how i can create a check box in gridview with all check option like gmail inbox and bind the data"
Use CheckBoxField[^] to add a checkbox column to GridView. You can bind it''s check property to a field from database. The link contains an example as well.
For Check-All functionality at client side, you can use JavaScript or jQuery to implement the same. Here is one such example: Check uncheck all checkboxes in Gridview using jQuery[^]
"the gridview has edit option"
Use a Edit, Update, Cancel CommandField[^] for adding an editing functionality to the GridView.
"if i click the the primary key(bookid) will pass to another page as query string.but i want to hid the bookid in gridview and pass to the edit page."
I didn''t get exactly what you are trying to do.
I suggest you to go through this tutorial before you start programming using GridView: GridView all in one[^]
Hope this helps!
希望 http://www.dotnetspider.com/resources/5644-Select-Deselect-All-records-functionality-inside.aspx .
这将为您提供帮助.
Hope http://www.dotnetspider.com/resources/5644-Select-Deselect-All-records-functionality-inside.aspx.
This will help you.
这篇关于带检查选项的asp gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文