Click here to Skip to main content
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 23: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)

  Print Answers RSS
0 OriginalGriff 240
1 Kamal Rocks 184
2 PIEBALDconsult 150
3 BillWoodruff 148
4 Jochen Arndt 135
0 OriginalGriff 5,695
1 DamithSL 4,506
2 Maciej Los 4,007
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,190


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 16 Nov 2011
Copyright © CodeProject, 1999-2014
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