Click here to Skip to main content
13,000,324 members (74,888 online)
Rate this:
Please Sign up or sign in to vote.
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 15-Nov-11 22:08pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

property of Formview, for more details Click Here
lalainealonso 16-Nov-11 19:11pm
Thanks for the help, but i have tried this and it did not work.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Form1.enabled = false add this in ur event when u want to make it readonly
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 16 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100