Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Problem filtering datagridview

$
0
0
Hi there, im trying to filter my datagridview by a value inputted into a textbox, but the problem im having is that no matter what employee i try to search for, the only one it filters every time is the first employee, which is the first record in the access database that it is bound to. the code below is just giving me the first row every time, can anyone help? its coded behind a button and the user enters the employee to search for in the textbox


EmployeeBindingSource.Filter = String.Format("EmployeeName Like '*" & txtName.Text) & "*'"

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>