可编辑的gridview,其中autogeneratecolumns = true [英] Editable gridview where autogeneratecolumns=true
本文介绍了可编辑的gridview,其中autogeneratecolumns = true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个下拉框,其中包含一个表列表。用户单击表格,其内容显示在网格视图中。我希望用户能够在所选表格中插入,更新和删除行。
是否可以创建一个可编辑的gridview,其中autogeneratecolumns = true?
我正在使用c#和asp.net 3.5。
如果没有,是否有替代方案,例如。点击gridview行并生成文本框?
I have a dropdown box which contains a list of tables. The user clicks on a table and its contents appear in a gridview. I want users to be able to insert, update and delete rows in the selected table.
Is it possible to create an editable gridview where autogeneratecolumns=true?
I am using c# with asp.net 3.5.
If not, is there an alternative eg. clicking on a gridview row and producing textboxes?
推荐答案
参考这篇文章可能会像你需要的那样
http://www.aspdotnet-suresh.com /2011/02/how-to-inserteditupdate-and-delete-data.html [ ^ ]
Refer this Article May be it would be as u need
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html[^]
字段名称是硬编码的,所以文章假设我知道哪个字段将被请求。因此autogeneratecolumns = false。
我不知道这有多大帮助。
The field names are hardcoded, so the article assumes I know which fields will be requested. Hence autogeneratecolumns=false.
I don''t see how this helps.
这篇关于可编辑的gridview,其中autogeneratecolumns = true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文