Re: Dual Combo box binding problem (relation involved)
From: Kevin Yu [MSFT] (v-kevy_at_online.microsoft.com)
Date: 04/30/04
- Next message: Kevin Yu [MSFT]: "Re: Can 2 different projects in the same solution share the same strongly typed dataset"
- Previous message: Uros: "Re: MSDTC and Oracle problem (ORA-00161)"
- In reply to: William Ryan eMVP: "Re: Dual Combo box binding problem (relation involved)"
- Next in thread: Brian Henry: "Re: Dual Combo box binding problem (relation involved)"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 06:30:42 GMT
Thanks for Bill's quick response!
Hi Brian,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you bind comboboxes to data
source, it displays System.Data.DataRow instead of Correct values. If there
is any misunderstanding, please feel free to let me know.
Generally, this might be caused by incorrect binding of data. Would you
please try to use typed DataSet instead. Because when using typed DataSet,
we can ensure that correct schema has been created, which makes binding
much more easier. Please also try to set binding properties in the
following order to make sure that there will be no excption thrown.
Me.cboCoverageLine.ValueMember = "LineOfBusinessID"
Me.cboCoverageLine.DisplayMember = "Name"
Me.cboCoverageLine.DataSource = ds_formData.Tables("LinesOfBusiness")
Me.cboCoverageType.DisplayMember = "Name"
' Me.cboCoverageType.ValueMember = "CoverageTypeID"
HTH. If anything is unclear, please feel free to reply to the post.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
- Next message: Kevin Yu [MSFT]: "Re: Can 2 different projects in the same solution share the same strongly typed dataset"
- Previous message: Uros: "Re: MSDTC and Oracle problem (ORA-00161)"
- In reply to: William Ryan eMVP: "Re: Dual Combo box binding problem (relation involved)"
- Next in thread: Brian Henry: "Re: Dual Combo box binding problem (relation involved)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|