Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

Use
FormView.ReadOnly
property of Formview, for more details Click Here
 
Share this answer
 
Comments
lalainealonso 16-Nov-11 19:11pm    
Thanks for the help, but i have tried this and it did not work.
Form1.enabled = false add this in ur event when u want to make it readonly
 
Share this answer
 
Comments
lalainealonso 16-Nov-11 19:12pm    
thank you, but may i just clarify if the form1 your referring is the formView?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900