使用C#编码从gridview清除记录 [英] cleare the record from gridview using C# coding

查看:72
本文介绍了使用C#编码从gridview清除记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在一个gridview中检查一行时,该行将显示在第二个gridview中,因此我想知道当我取消选中一个gridview的行时,我将在c#中编写代码,然后从中清除所选记录第二个gridview.

when i check a row in one gridview then that row will show in the second gridview so i want to know that what i write the code in c# when i uncheck the row of one gridview and then that selected record will be clear from the 2nd gridview.

推荐答案

做到这一点的最佳方法始终是修改数据源并重新绑定.如果这是一个Web应用程序,则您无法告诉我们,但答案是相同的.
The best way to do this is always to modify your data source and rebind. If this is a web app, you failed to tell us, but the answer is the same.


这篇关于使用C#编码从gridview清除记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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