Click here to Skip to main content
11,927,422 members (46,595 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
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
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.151126.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