473,324 Members | 2,456 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,324 software developers and data experts.

PropertyDescriptor information lost on data bound ComboBox when made invisible

Hi all,
I have bound a custom list object to a combo box's data source. This object
implements the ITypedList interface and returns a
PropertyDescriptorCollection to the fields in the list object. The
appropriate list field is then selected via the ComboBox's DisplayMember
property. Everything works fine up to this point. If however the combo box
Visible property is cycled it seems to lose the property descriptor
information; the underlying list is still intact but instead of field values
in the drop down list I get the type names of the objects in the list. This
combo forms part of a cell edit in a data grid so changing it's visibility
is critical. Is this a bug or have I missed something?
Thanks in advance,
Aido.
Nov 22 '05 #1
1 1952
Hi all,
For anybody even remotely interested I have 'solved' this problem. If you
change the 'visibility' of the offending control by setting its Bounds
property to Rectangle.Empty (i.e. shrink to 0 size) this problem does not
manifest itself (since it always remains visible albeit very small). This
could be due to my implementation of the various interfaces (I could not
find appropriate examples) but is probably not since the example in the
DataGridColumnStyle class overview changes the visibility of the hosted
DateTimePicker control in exactly this manner.
Aido.

"aido" <ac******@hotmail.com> wrote in message
news:eE**************@TK2MSFTNGP09.phx.gbl...
Hi all,
I have bound a custom list object to a combo box's data source. This object implements the ITypedList interface and returns a
PropertyDescriptorCollection to the fields in the list object. The
appropriate list field is then selected via the ComboBox's DisplayMember
property. Everything works fine up to this point. If however the combo box Visible property is cycled it seems to lose the property descriptor
information; the underlying list is still intact but instead of field values in the drop down list I get the type names of the objects in the list. This combo forms part of a cell edit in a data grid so changing it's visibility
is critical. Is this a bug or have I missed something?
Thanks in advance,
Aido.

Nov 22 '05 #2

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

Similar topics

0
by: aido | last post by:
Hi all, I have bound a custom list object to a combo box's data source. This object implements the ITypedList interface and returns a PropertyDescriptorCollection to the fields in the list...
2
by: Iain Miller | last post by:
Struggling a bit here & would be grateful for any help. I have a table which has a list of people in it. Each person has a unique ID automatically allocated by Access but also belongs to one of 5...
13
by: MLH | last post by:
I have a form with two controls: !! - combo box !! - text box A button on the form tries to run this SQL when clicked... INSERT INTO BodyMsgsSent (ToWhom, BodyText) SELECT DISTINCTROW !! AS...
2
by: Greg Bradburn | last post by:
Greetings, I have a form with two comboboxes that I want to be populated with the same values from a table (i.e. both comboboxes have the same table/column as their datasource and display...
4
by: Rob Kroese | last post by:
I've got a form with a datagrid that displays a list of items, along with several textboxes, comboboxes, etc., that display the details for the selected item. The columns in the datagrid and the...
14
by: Ron L | last post by:
All I am working with a DataGrid and a form consisting of a number of text, checkbox, combobox controls, all bound to the same datatable. When I click on my "New" button, I create a new row,...
5
by: Eric A. Johnson | last post by:
Hi Everyone, I am at my wit's end here. I have a combobox (combyQueryTitle) that I need to use in order to select a query for my database project. Therefore, I am using the...
2
by: Crazy Cat | last post by:
I am using a data-bound combobox with dropdownstyle set to dropdownlist. Teh combobox is bound to a bindingsource which is in turn bound to a table in my database. The table has only 4 rows and I...
9
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters...
11
by: colin | last post by:
Hi, Ive written a custom PropertyDescriptor wich lets me edit my custom data items in the property editor, however I now wish to expand it so that it can be used to edit nested collections of...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.