Error in searching in DataGridView

0
Hello, I have a Textbox where I insert a name automatically searches the DataGridView with data from the employees, for example if I type the letter "a" it will appear all the names beginning with the letter "a" but if the DataGridView has no name with the letter "a", the system error.

I would like to know if you have a code that does not give an error, that when you can not find a name with the corresponding letter, do not close the program

The code I use in the textbox to do the search is this:

FuncionariosBindingSource.Filter = "nome like'%" & TextBox1.Text & "%'"

Thank you in advance!

    
asked by anonymous 26.03.2018 / 16:35

1 answer

1

To resolve this error do the same as I did below in the image anything calls me on zap 3199650-8625

    
02.04.2018 / 14:19