Jerry,
the Items in a databound ComboBox actually *are* DataRowViews. This short
code snippet may help:
DataRowView recRowView = cboName.SelectedItem;
DataRow recName = recRowView.Row;
lblAccountNum.Text = recName.AccountNum;
lblCompanyName.Text = recName.CompanyName;
--Peter
--
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Short urls & more:
http://ittyurl.net
"Jerry" wrote:
> Hi
>
> I have a combo box that is populated by an ole db connection to a ms access
> table (Valuewave). The column that is used in the table is called waves.
>
> The combo box is populated with the correct values, but when I refer to the
> selectedItem value using WaveItem = cboWaves.SelectedItem.ToString();
> MessageBox.Show(WaveItem);
> I get System.Data.DataRowView. I have checked the spelling of the database
> in the connection string, the table, and the column and they are correct.
> How can I resolve this?
>
> Doug
>
>
>
>
>