470,602 Members | 1,728 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,602 developers. It's quick & easy.

Data bound control not showing data

I am writing in c# with Visual Studio 2003. I am creating
a form that shows one record from a Dataset that is
populated with only one record from SQL Server 2000. I am
using bound controls, both text boxes and Combo Boxes
(populated successfuly from same data source).

When I use the fill command for the SQLDataAdaptor I can
get the data by querying the dataset but the controls on
the form do not show the data. If I set a combo box to
visible = false and then set it to true the data shows in
the combo box, but I can't find any way to view the data
for the text boxes.

The text boxes are bound to the Text property and the
combo boxes are bound to ValueMember and DisplayMember
properties. This form was working OK until recently and
the only thig I can remember changing is writing a couple
of routines that changes the Text property of some of the
text boxes, but these are only called after a button is
clickes and this problem occurs as soon as the form is

Any ideas would be appreciated as this is confusing me

Jul 21 '05 #1
0 1655

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by seeni | last post: by
10 posts views Thread by mattmerc | last post: by
reply views Thread by Paul Edwards | last post: by
9 posts views Thread by Anil Gupte | last post: by
3 posts views Thread by Emma Middlebrook | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.