如何在网格视图中动态隐藏提交的行 [英] how to hide a submitted row dynamically in grid view

查看:114
本文介绍了如何在网格视图中动态隐藏提交的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须开发一个页面,其中我必须通过网格视图(绑定了table1)显示记录列表.
有行选择(通过复选框)和更新记录的状态(通过下拉列表),并且在提交(单击按钮)后,将行插入到diff(表2)中.表,我必须从当前显示中隐藏该行,但不能从网格绑定的table1中删除该记录.

请帮助.

i have to develope a page where i have to show list of records through grid view(table1 binded).
there is row selection(by check box)and updating the status of record(by dropdown)and after submitting(button click) that row is inserted into diff (table2). table, i have to hide that row from the current display but not delete that record from grid binded table1.

plese help.

推荐答案

尝试这些
隐藏asp.net Gridview行 [在ASP.NET GridView中隐藏所选行 [ ^ ]
以编程方式隐藏gridview行c# [
Try these
Hide asp.net Gridview row[^]
Hide the Selected Row in an ASP.NET GridView[^]
Programatically hide gridview row c#[^]


您可以尝试以下

从db.Table1中的t1开始
在t1.field上的db.Table2中加入t2不等于t2.field
选择新的{t1.field2,t2.field3}

问候
费萨尔
You can try the following

from t1 in db.Table1
join t2 in db.Table2 on t1.field not equals t2.field
select new { t1.field2, t2.field3}

regards
Faisal


这篇关于如何在网格视图中动态隐藏提交的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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