Avatar of BlakeMcKenna
BlakeMcKennaFlag for United States of America asked on

Confused on how to handle a BindingSource, Dataset, TableAdapter that is bound to a DGV?

I do not know how to update a DataGridView that is bound thru the DEsigner. I have to have this dgv bound thru the designer just because it's easier and quicker. However, the dgv is loaded based of of 2 parameter values (a 4 digit year and a 2 digit month) on the form when it loads. The user has control of these two parameters and can change them anytime. For a month that has no data, obviously the dgv will be empty, when there is data, I'm not sure how to delete and update the grid.

The main difference between this dgv and others that I have worked with via the designer, is that executes a Stored Procedure because of the parameters. I tried using the BindingSource Filter property but it did not like my string that I was passing it.

Anyway, can someone please show me the easiest and most efficient way to handle all updates to a designer bound DataGridView?

Thanks,
Visual Basic.NET

Avatar of undefined
Last Comment
BlakeMcKenna

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
adriankohws

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
BlakeMcKenna

Thank you! That worked perfect and now I understand how the BindingSource gets updated automatically.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy