Link to home
Start Free TrialLog in
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,
ASKER CERTIFIED SOLUTION
Avatar of adriankohws
adriankohws
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BlakeMcKenna

ASKER

Thank you! That worked perfect and now I understand how the BindingSource gets updated automatically.