如何在VB.net中将Formview模式从插入模式更改为只读模式 [英] How to change formview mode from insert to readonly mode in VB.net

查看:82
本文介绍了如何在VB.net中将Formview模式从插入模式更改为只读模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天!

我想问一下如何将formview的模式从插入模式更改为只读模式.

默认情况下,在我的项目中,formview看不到数据库中的记录/数据,我在emptydatatemplate中有一个linkbutton,它将把formview的默认模式更改为插入模式.我的问题是,当我已经插入数据时,它不会返回只读模式.

我希望有人能帮助我.我真的很难解决这个问题.

预先感谢.

Good Day!

I would like to ask how would i change the formview''s mode from insert mode to readonly mode.

In my project by default the formview does not see record/data from the database, I have a linkbutton in the emptydatatemplate that will change the default mode of the formview to insert mode. My problem is when i have already inserted my data it won''t return to readonly mode.

I hope someone could help me. I''m really having a hard time to solve it.

Thanks in advance.

推荐答案

使用
Formview的
Use
FormView.ReadOnly

属性,有关更多详细信息,单击此处

property of Formview, for more details Click Here


Form1.enabled = false当您想将其设为只读时在ur事件中添加此代码
Form1.enabled = false add this in ur event when u want to make it readonly


这篇关于如何在VB.net中将Formview模式从插入模式更改为只读模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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