Gridview选定的行更新 [英] Gridview selected rows update

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

问题描述

大家好,

谁能告诉我如何只将网格视图中已删除的行更新为数据库.


谢谢.

Hi ALL,

Can anybody tell me how to updated only the seleted rows from the gridview to database.


Thanks.

推荐答案

使用以下代码:

use below code :

for (int i = 0; i<yourgridview.rows.count;>{
    if (((CheckBox)YourGridView.Rows[i].FindControl("YourCheckBox")).Checked)
    {
        // Your code for update
    }
}


这篇关于Gridview选定的行更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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