combobox DataSource DisplayMember problem
- From: "ray well" <nospam@xxxxxxxxxx>
- Date: Wed, 24 Aug 2005 09:07:12 -0400
hi,
i have a simple table that i access in code, and connect it to a combobox
with setting the DataSource, and DisplayMember properties with the following
code,
cmbNames.DataSource = mDs.Tables("tblNames")
cmbNames.DisplayMember = "Names"
the data get loaded into the combobox, i see it by opening the combo, and
can pop it into the text portion by clicking on any item..
however if i use 'cmbNames.Items(x) to retrieve the data at a certain
location it returns "System.Data.DataRowView", instead of the name stored
there. why is this? and what can i do to get the data from location x in the
Items collection?
thanks
ray
.
- Follow-Ups:
- Re: combobox DataSource DisplayMember problem
- From: W.G. Ryan MVP
- Re: combobox DataSource DisplayMember problem
- Prev by Date: Re: Serializing data set with de-normalized data
- Next by Date: Re: typed data, difference between new and modified
- Previous by thread: How to select schema?
- Next by thread: Re: combobox DataSource DisplayMember problem
- Index(es):
Relevant Pages
|