We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

No subject

Thread ID:

Created:

Updated:

Platform:

Replies:

343 Jun 7,2002 04:32 AM Jun 7,2002 04:56 AM Windows Forms 1
loading
Tags: FAQ
quilla_b
Asked On June 7, 2002 04:32 AM

I have a combobox name cboSearchBy and a textbox named txtSearchString. The user has to first select the field name they want to search by by choosing from the combobox then they can type the string in the textbox. I want to filter it but can't get it!! HELP! Dim dvView As New DataView() Dim SearchBy As String SearchBy = cboSearchBy.Text With dvView .Table = dsProfile.Tables("Profile") .RowFilter = "'SearchBy' = '" & txtSearchString.text & "'" End With dtgProfile.DataSource = dvView If I did .RowFilter = "Username = 'quilla'" then it filters it.. there's something wrong!

Clay Burch [Syncfusion]
Replied On June 7, 2002 04:56 AM

Instead of .RowFilter = "'SearchBy' = '" & txtSearchString.text & "'" try something like .RowFilter = SearchBy & " = '" & txtSearchString.text & "'"

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;