Another question!! refresh objects that are data bound

H

hcs

Hello,

on a datagrid when you alter the dataset and want to show the new dataset
you use datagrid.refresh().
how is this possible on a form which is based on a dataset and consists of a
number of textboxes and comboboxes? i have just tried .refesh on the
textboxes but it is not displaying the dataset. as a test i have placed a
datagrid is bound to the same dataset and it displays perfectly the updated
dataset though none of the other controls do. any ideas?

Cheers
 
G

Guest

Jan. 6, 2005

You would have to use the CurrencyManager. Then you would have to
bind the textboxes, etc. to the dataset using databindings. Then you would
have to set the Current or Position (I can't recall right now.) property of
the CurrencyManager to the row you want. This will update all of the bound
controls. When you set the datasource and datamembers of the textboxes you
will have to specify the same combination in the constructor of the
CurrencyManager. If this reply helps you, then please click on the "Yes"
button above this message where the question asks "Was this post helpful to
you?". Also in the future, if you mark your new posts as a question when you
click on New, then you will be able to credit the person who answers your
questions. I hope this helps and have a great day!



Joseph MCAD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top