带有多个复选框的Gridview操作 [英] Gridview operation with multiple checkboxes

查看:67
本文介绍了带有多个复选框的Gridview操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个带有多行复选框的girdview,并且在网格顶部有编辑"按钮.我的操作是我将选择该复选框并单击编辑"按钮,然后进行检查,我做了很多记录应该进入编辑模式"然后用户将修改某些内容,然后单击保存"按钮,然后许多记录应保存在数据库中.对于gridview中的单行,我们可以处理,但对于多于一行的内容,我们该如何处理?

假设我在网格中有10条记录,并带有10个复选框,所以在这里我将检查4行,然后单击网格顶部的编辑按钮,因此单击网格,我们必须使用editmode来查看网格中的4条记录然后我将更新一些值,然后将其保存.

Hi All,

I have a girdview with multirow checkboxes and i have button "EDIT" top of the grid.My operation is that i will select the checkboxes and click on edit button then what ever check''s i have done that many records should come in edit mode then user will modify something then he click on save button then that many records should save in the database.For single row in the gridview we can handle but for morethan one row how can we handle?

Let say i have 10 records in the grid with 10 checkboxes so here i will check 4 rows then click on edit button which is there on the top of the grid so clicking on the grid we have to see the 4 records in the grid with editmode then i will update some value then i will save it.

推荐答案

请参阅本文
Look at this article Selecting multiple checkboxes inside a GridView control[^]

Now in the button click event just replace with your requirement.


阅读他的 [ ^ ]文章

选择/取消选择GridView中的所有复选框 [ GridView内部复选框的客户端验证 [维护GridView内部不同页面中选定复选框的状态 [
Read his[^] articles

Selecting / Deselecting all the CheckBoxes Inside a GridView[^]
Client-Side Validation for the CheckBoxes Inside a GridView[^]
Maintaining States of Selected CheckBoxes in Different Pages inside the GridView[^]


这篇关于带有多个复选框的Gridview操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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