473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PropertyGrid - ReadOnly

All,

Does anyone know how I can make the PropertyGrid control readonly? I want
to display the PUBLIC properties of an object, but I don't want the user to
be able to change them (they do need to be read/write internally, however).
Along with this, if the property is a collection, the collection window
should not allow the user to change values, including pressing the Add or
Remove buttons.

Anyway to do this?

Thanks in advance!

Dave Wurtz
Nov 17 '05 #1
2 1544
If your property is Get only, then it will be automatically read-only in the
PropertyGrid.

HTH
Alex

"Dave Wurtz" <da*******************@asdsoftware.com> wrote in message
news:3f******@news.splitrock.net...
All,

Does anyone know how I can make the PropertyGrid control readonly? I want
to display the PUBLIC properties of an object, but I don't want the user to be able to change them (they do need to be read/write internally, however). Along with this, if the property is a collection, the collection window
should not allow the user to change values, including pressing the Add or
Remove buttons.

Anyway to do this?

Thanks in advance!

Dave Wurtz

Nov 17 '05 #2
Alex,

Thanks for responding. My properties are Get/Set, which they need to be. I
was hoping to use the PropertyGrid control to only DISPLAY the information
about my object. I don't want the user to be able to change the values in
this particular case.

Any other ideas?

Dave
"AlexS" <sa***********@SPAMsympaticoPLEASE.ca> wrote in message
news:OV**************@TK2MSFTNGP09.phx.gbl...
If your property is Get only, then it will be automatically read-only in the PropertyGrid.

HTH
Alex

"Dave Wurtz" <da*******************@asdsoftware.com> wrote in message
news:3f******@news.splitrock.net...
All,

Does anyone know how I can make the PropertyGrid control readonly? I want to display the PUBLIC properties of an object, but I don't want the user

to
be able to change them (they do need to be read/write internally,

however).
Along with this, if the property is a collection, the collection window
should not allow the user to change values, including pressing the Add or Remove buttons.

Anyway to do this?

Thanks in advance!

Dave Wurtz


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: micro_bug | last post by:
Now I am developing a tool, just like VS.net Form Edition environment. User can edit a component's properties by a PropertyGrid control. Now I have some questions about this PropertyGrid control:...
1
by: Polo | last post by:
I have a instance of a class A I show it in a propertyGrid. Sometime this object can be edited, sometime not (all properties readonly). How can i do it (Without the ReadOnlyAttrivute) Thank's...
1
by: S.mark | last post by:
Hi, I can't find the ReadOnly property in PropertyGrid control (Visual Studio 2005), is there any work around to display object properties with the new PropertyGrid control in ReadOnly mode ? ...
1
by: ANDRES BECERRA | last post by:
Herfried K. Wagner was kind enough to point me to the PropertyGrid control http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwindowsformspropertygridclasstopic.asp I have found a few...
3
by: Tom | last post by:
I'm using the PropertyGrid, and have it bound to a class object. Works fine - however, I have some properties that I want to show up on the grid (i.e. they are browsable) -YET- I don't want the...
0
by: David J | last post by:
Hi, I am strugling with the propertygrid and a listbox. I am using the universaldropdowneditor from the codeproject (code below). However I am populating the listbox via a datasource. The problem...
8
by: ljlevend2 | last post by:
If a property's type is an array and the property is exposed in a PropertyGrid, then the property can be expanded so that the user can view and edit the array elements. But, I've noticed that if...
4
by: asjad | last post by:
I need to make my propertygrid readonly in some cases which obviously i am not able to do. So what i do is i make my propertygrid.enable = false and then tried to make its scrollbar.enable = true...
4
by: csharpula csharp | last post by:
Hello, I am using ErrorProvider for PropertyGrid control and in case of error I am doing the following: SetError(grdInfo, _msgError); The problem is the the icon is shown near the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.