Solved

Create a Binding Source Filter in Visual Basic

Posted on 2008-10-06
1
466 Views
Last Modified: 2013-11-26
I have a visual basic 2005 form, Form1, with 20+ controls(textboxes, comboboxes) on it, each bound to a column in an ms access table DataPoints. The controls are bound using tableadapter taDataPoints and BindingSource bsDataPoints.

The form also has a BindingNavigator, bnDataPoints. I would like to add a button to the BindingNavigator that will allow the user to filter by the text selected in the active control.

For example; textbox1 is bound to the column DataPointName, the user selects the text "SteamPressure" in textbox1 and clicks the filter button on the Bindingnavigator. I would like the code to build the statement  "DataPointName='SteamPressure'", which will be used as the filter in the BindingSource.


Does anyone have any code that can write a Filter statement for the binding source by detecting which column in the table the active control is bound to? I am having trouble picking up the bound-to column from the control.

Any help would be appreciated. Thanks,

John
0
Comment
Question by:GIANTOCR
1 Comment
 

Accepted Solution

by:
GIANTOCR earned 0 total points
ID: 22664351
I reposted this in a differnt zone and a solution was posted at below

http://www.experts-exchange.com/Microsoft/Development/Q_23794905
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question