Hello very good to all my question is how I can search a datagridview data using a textbox, what I mean is typing and if it matches what you type in the texbox it appears in the datagridview without a database.
Hello very good to all my question is how I can search a datagridview data using a textbox, what I mean is typing and if it matches what you type in the texbox it appears in the datagridview without a database.
Using RowFilter , you should add the event
TextChanged
To the textbox with which you want to filter and inside, you are setting what is the condition, for example
(dataGridViewFields.DataSource as DataTable).DefaultView.RowFilter = string.Format("Nombre = '{0}'", textBoxBusqueda.Text);
In this case when you write the '' Name '' in the textbox, the DataGridView will only show the row corresponding to that name.
Greetings.