Error in Datagridview search

Asked

Viewed 62 times

0

Hello, I have a Textbox in which entered a name automatically does the search in a Datagridview with employee data, for example if I type the letter "a" will appear all names starting with the letter "a", but if Datagridview has no name with the letter "a", the system of error.

I wonder if you have a code that makes no mistake, that when you do not find any name with the corresponding letter, do not close the program

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

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

Thanks in advance!

1 answer

1


To resolve this error do the same as I did below in the image inserir a descrição da imagem aqui Anything calls me on Zap 3199650-8625

  • 1

    Your code worked, that’s what I needed. Thank you very much!

  • For nothing! I am developing a Management program for the company where I work, the company has a management system not very good, I am remaking it in Vb.net, I would like to assist, will gain much knowledge with this? If yes please contact us 31 99650-8625

Browser other questions tagged

You are not signed in. Login or sign up in order to post.