Link to home
Start Free TrialLog in
Avatar of dijon316
dijon316

asked on

Need help in changing the underlying SQL for a DataGridView

Hello,

I need a way to change the SQL statement that is being applied to the DataGridView but I am not sure how to go about it. Do I need to apply it to the Table Adapter, the Binding Source or the Dataset?

What I want to do is have a combo box, text field and a button to apply filtering of the data on the fly. The operator will select from the combo box which field to search, then enter the search term and press the button to apply it.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Sancler
Sancler

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 dijon316
dijon316

ASKER

It ssems when I apply the filter, nothing changes. Do I need to refresh something to cause the DataGridView to update?
Nevermind, I was trying to asign the code to an unused button. It did work. Thanks!