Click here to Skip to main content
11,490,973 members (62,585 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 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 Sergey Alexandrovich Kryukov 521
1 Andy Lanng 288
2 Sascha Lefèvre 240
3 Maciej Los 195
4 OriginalGriff 163
0 Sergey Alexandrovich Kryukov 9,829
1 OriginalGriff 8,520
2 Sascha Lefèvre 3,574
3 Maciej Los 3,151
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web01 | 2.8.150520.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