Click here to Skip to main content
11,642,216 members (62,265 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET from
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
good
Please Sign up or sign in to vote.

Solution 1

Use
FormView.ReadOnly
property of Formview, for more details Click Here
  Permalink  
Comments
lalainealonso at 16-Nov-11 19:11pm
   
Thanks for the help, but i have tried this and it did not work.
Rate this: bad
good
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
  Permalink  
Comments
lalainealonso at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 16 Nov 2011
Copyright © CodeProject, 1999-2015
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