|
-
December 11th, 2011, 10:25 AM
#1
PropertyGrid
Hi,
I'm working on a propertygrid that has two items. The value of these items has to be taken from a database table. The table contains two columns, but I only want one column data to be displayed in the propertygrid. When the user selects one value from the drop down, the corresponding value has to be recognized. Is this possible please?
Thanks
Last edited by shers; December 11th, 2011 at 10:25 AM.
Reason: Edit title
-
December 14th, 2011, 08:24 AM
#2
Re: PropertyGrid
I suppose it is possible, but why does it have to be connected to a database at all? usually with Property Grids databases are not necessary as such.
You could have a collection object ( which has read the info from the DB ), and then add the collection object to the Property Grid.
I am just concerned about the amount of work this property grid of yours would have to do - each showing of it will cause a database request, and if things aren't set up properly - you will run into major, unecessary problems...
-
December 15th, 2011, 10:29 AM
#3
Re: PropertyGrid
I have managed to get the list. I'd now like to know if it is possible to use different collections for one typeconverter please?
I have a combo box and a property grid in a form. The combo box contains 2 items. If one item is selected, two properties are listed in the property grid. These properties should have a dropdown that contains a list of items. I have two string arrays that contain the values for these properties. Can I use one TypeConverter that inherits StringConverter for these lists to be displayed in two different properties? That is, with one TypeConverter class, can I populate both the lists? I will also have to do the same with the other items in the combo box.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|