RE: Bound combobox SelectedValue is null?

RE: Bound combobox SelectedValue is null?

Old forum URL: forums.lhotka.net/forums/t/2992.aspx


ozitraveller posted on Tuesday, June 05, 2007

Hi

I'm hoping that someone can help me, this is driving me crazy.

I have a number of bound comboboxes on a form, and I'm using the first one to filter the data for the others. The first combo seems to bind properly, it displays the correct value, but when I try to use the selectedvalue to filter the data for the other combos I get a NullValueException. All the other combos in the app behave correctly. I've checked the DataSource, DisplayMember, ValueMember SelectedValue properties and all look ok. And I've checked that all the bound fields are int.

Any suggestions would be greatly appreciated.

Thanks

Maybe time for a 3rd party combo!

Brian Criswell replied on Wednesday, June 06, 2007

Could use a bit more info.  How is the combobox being used to filter the others?  What is the stach trace of the exception?

ozitraveller replied on Friday, June 08, 2007

Thanks Brian

[Resolved]

Copyright (c) Marimer LLC