简体   繁体   English

模式在细节视图中没有变化

[英]Mode is not changing in detailsview

in details view once i click edit mode. 在单击编辑模式后,在详细信息视图中。 all the controls are getting into edit mode. 所有控件都进入编辑模式。 i make the changes and give update data is updated in database . 我进行更改并在数据库中更新更新数据。 but still all the controls are in edit mode only "actaully once we give click then update then i should again gone to read only mode means all the values should again be showing in label field" 但仍然所有的控件都只处于编辑模式“一旦我们给出点击然后更新然后我应该再次进入只读模式意味着所有的值应该再次显示在标签字段中”

i am doing this in .cs file only no sqldatadource is used or object datasource 我在.cs文件中这样做只是没有使用sqldatadource或对象数据源

right now this feature is not happening to me. 现在这个功能没有发生在我身上。 what is the issue here? 这是什么问题?

looking forward for an solution thank you 期待解决方案谢谢

由于您没有使用任何内置代码进行更新,因此您可能需要在更新期间手动更改显示模式。

myDetailsView.ChangeMode( DetailsViewMode.ReadOnly );

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM