首页 | 本学科首页   官方微博 | 高级检索  
     

一种GridView批量更新方法
引用本文:刘兵,林剑,李艳华,徐磊.一种GridView批量更新方法[J].电脑编程技巧与维护,2011(18):137-138,142.
作者姓名:刘兵  林剑  李艳华  徐磊
作者单位:湖南科技大学知识处理与网络化制造实验室,湖南湘潭,411201
基金项目:湖南省水库移民开发局管理项目资助
摘    要:GridView是ASP.NET2.0中常用的数据绑定控件,它默认只能对绑定的数据进行单行更新,无法进行多行数据的批量更新,目前已有的GridView批量更新方法无法兼容其单行更新功能,也不能静态绑定数据。通过在ItemTemplate模板列中,新增一个TextBox控件,并利用TextBox控件和Label控件的切换来实现GridView的批量更新,并解决了上述存在的问题。

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

A Method of the Batch Update of GridView
LIU Bing,LIN Jian,LI Yanghua,XU Lei.A Method of the Batch Update of GridView[J].Computer Programming Skills & Maintenance,2011(18):137-138,142.
Authors:LIU Bing  LIN Jian  LI Yanghua  XU Lei
Affiliation:LIU Bing,LIN Jian,LI Yanghua,XU Lei(Key Laboratory of Knowledge Processing and Network Manufacturing,Hunan University of Science and Technology,Hunan Xiangtan 411201)
Abstract: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.
Keywords:GridView  Batch Update  ASP  NET  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号