how to refresh a data grid view without closing and reopening the parent form

Hey guys,

I have two dgv's on a form.  I have tried the dgvFillQue.DataSource = "" and dgvFillQue.DataSource = tblFillQueAdapter.Fill. and this works but will not refresh the gui.  If I close and reopen the form the dgv will show the current data.  I really need some information as to how I could more easily do the refresh.

Thanks,

Jerry
JDL129Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

p_davisCommented:
If you use a bindingsource as the data source it will refresh automatically
0
JDL129Author Commented:
Mr. Davis that's for the post!!!!

This is my code:
                      dgvFillQue.DataSource = "";
                        dgvFillQue.DataSource = tblFillQueBindingSource;

If I close the form and reopen it the changes in the data table are reflected.

What am I doing wrong?

Thanks
Jerry
0
Rajar AhmedConsultantCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

p_davisCommented:
Can u post the code where you set the bindingsource datasource?
0
JDL129Author Commented:
Upping the points.
0
JDL129Author Commented:
You guys saved my neck!!!!!!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.