如何在动态gridview中编辑和更新操作 [英] How to edit and update operation in dynamic gridview

查看:69
本文介绍了如何在动态gridview中编辑和更新操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,



我正在使用数据创建动态网格视图。我想在gridview中执行编辑和更新操作



。我怎么能这样做,请你帮我......

Sir,

I am creating dynamic gridview with data. I want to perform edit and update operations

with in the gridview .How can i do this could u please help me......

推荐答案

您需要使用模板字段。 使用 TemplateField 对象,您可以指定包含标记和控件的模板,以自定义GridView控件中列的布局和行为。使用 ItemTemplate ,您可以指定GridView在列中显示数据时要使用的布局。



参考:

ASP.NET 2.0 GridView控件中的动态模板列 [ ^ ]
You need to use template fields. A TemplateField object enables you to specify templates that contain markup and controls to customize the layout and behavior of a column in a GridView control. Using an ItemTemplate, you can specify the layout to be used when the GridView displays data in a column.

Refer:
Dynamic Template Columns in the ASP.NET 2.0 GridView Control[^]


这篇关于如何在动态gridview中编辑和更新操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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