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!
Your code worked, that’s what I needed. Thank you very much!
– Mateus Justino
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
– Matheus Militão