如何通过选中复选框选择gridview中的行? [英] How to select a row in gridview by selecting the checkboxes?

查看:51
本文介绍了如何通过选中复选框选择gridview中的行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在gridview控件中显示了复选框。我想通过选中复选框从gridview控件中选择一些行,然后当我单击选择按钮时,这些行必须移动到数据库中的另一个表。并且还有有什么方法可以突出显示gridview控件中的选定行?

解决方案

这里有一些很好的文章要关注



使用CheckBox的GridView:在ASP.Net中获取选定的行



在ASP.Net中突出显示Gridview选定的行


也可以尝试

选择GridView控件内的多个复选框 [ ^ ]

在Asp.net中选中复选框时获取网格视图行值[ ^ ]

I have displayed checkboxes in a gridview control.I want to select some rows from the gridview control by checking the checkboxes and then when I click the select button those rows must be moved to another table in the database.And also is there any way to highlight the selected row in the gridview control?

解决方案

Here are some nice articles to follow

GridView with CheckBox: Get Selected Rows in ASP.Net

Highlight Gridview selected row in ASP.Net


Also try
Selecting multiple checkboxes inside a GridView control[^]
Get Gridview Row Values When Checkbox Selected in Asp.net [^]


这篇关于如何通过选中复选框选择gridview中的行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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