一种GridView批量更新方法  

A Method of the Batch Update of GridView

在线阅读下载全文

作  者:刘兵[1] 林剑[1] 李艳华[1] 徐磊[1] 

机构地区:[1]湖南科技大学知识处理与网络化制造实验室,湖南湘潭411201

出  处:《电脑编程技巧与维护》2011年第18期137-138,142,共3页Computer Programming Skills & Maintenance

基  金:湖南省水库移民开发局管理项目资助

摘  要:GridView是ASP.NET2.0中常用的数据绑定控件,它默认只能对绑定的数据进行单行更新,无法进行多行数据的批量更新,目前已有的GridView批量更新方法无法兼容其单行更新功能,也不能静态绑定数据。通过在ItemTemplate模板列中,新增一个TextBox控件,并利用TextBox控件和Label控件的切换来实现GridView的批量更新,并解决了上述存在的问题。GridView is the Data-bound controls of ASP.NET 2.0, It can only update a single-line on the bind data it Can't achieve multiline batch update of Data. The currently available methods of Gridview batch update can' t achieve compatibility of its single-line update feature,and the data can' t be static binding. In this article, we add a TextBox control in the ItemTemplate, by using the switch of TextBox control and Label control to achieve the batch update of GridView, and solved the above problems.

关 键 词:GRIDVIEW 批量更新 ASP.NET 

分 类 号:TP311.10[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象