I want to add a filter textbox to an application so that when a user types text into it, as they type it, the DataGridView will automatically trim down what’s being viewed.
Right now DataGridView is bound to a List with my User Objects.
I was in the process of just using LINQ to create a separate List of User objects and then just re update the DataGridView by doing the whole dataGridView1.DataSource = filteredList but is that the best way to go about this? I feel like I’m doing it the bad way.
That’s probably similar to what I’d go with. Alternatively you could iterate the list and remove any objects no longer matching which will probably be much more memory-friendly.