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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

No subject

Thread ID:





343 Jun 7,2002 08:32 AM UTC Jun 7,2002 08:56 AM UTC WinForms 1
Tags: FAQ
Asked On June 7, 2002 08:32 AM UTC

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 08:56 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon