Web窗体中GridView的GridView任务中没有编辑选项 [英] No editing option in GridView tasks for GridView in Web Forms

查看:61
本文介绍了Web窗体中GridView的GridView任务中没有编辑选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与我见过的很多教程不同,我的gridview任务没有启用编辑选项。这是我真正需要的一个功能。或者有什么方法可以使用表单进行编辑吗?

Unlike many tutorials I've seen, my gridview tasks does not have the Enable Editing option. It is a feature that I really need. Or is there any way I can edit using a form?

推荐答案

您好,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

仅当
启用编辑 复选框> GridView 控件绑定支持编辑。例如,如果
GridView
控件绑定到
SqlDataSource 控制,
SqlDataSource 控制
UpdateQuery 属性必须包含SQL Update语句。

The Enable Editing check box appears in the smart tag panel only if the data source control to which GridView control is bound supports editing. For example, if the GridView control is bound to a SqlDataSource control, the SqlDataSource control's UpdateQuery property must contain a SQL Update statement.

此外,您还可以查看该主题:
https://social.msdn.microsoft.com/Forums/vstudio/en-US / 79fc0f7d-a1f2-40 aa-8252-f0804f165800 / gridview-enable-editing-enable-deletion?forum = Vsexpressinstall

Besides, you can also have a look at the thread: https://social.msdn.microsoft.com/Forums/vstudio/en-US/79fc0f7d-a1f2-40aa-8252-f0804f165800/gridview-enable-editing-enable-deleting?forum=Vsexpressinstall

我能够解决。我错过了在表格中设置主键

如果您仍然遇到问题,请随时告诉我。

If you still have problems about it, please feel free to let me know.

祝你好运,

Joyce


这篇关于Web窗体中GridView的GridView任务中没有编辑选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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