Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2007

Tip: Looking for answers? Try searching our database.

Non-Editable Property not read-only property

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Behzad - 14 Jan 2007 13:34 GMT
hi all,

thanks for ur concern,

what i'am looking for is a way to not allow the user editing the value
of the property - let's say in a propertygrid -.Being read-only does
not fit this need because i want to be able to assign value to the
property but while showing the property to user, he/she should only be
able to see the value not edit it.

Is there any way to do this?

Thanks a lot.
Behzad
VisualHint - 15 Jan 2007 12:34 GMT
Hello Behzad,

if you attach a [ReadOnly(true)] to your property, it will be readonly
in the grid, and still a settable property in your code.

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List -
http://www.propertygridresourcelist.com

> hi all,
>
[quoted text clipped - 10 lines]
> Thanks a lot.
> Behzad

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.