I just spent an hour on a similar problem. For me the answer turned out to be embarrassingly simple.
(dataGridViewFields.DataSource as DataTable).DefaultView.RowFilter = string.Format("Field = '{0}'", textBoxFilter.Text);
More Related Contents:
- How to add a new row to datagridview programmatically
- How to change row color in datagridview?
- Copy DataGridView values to TextBox
- How to Merge DataGridView Cell in Winforms
- How can we do pagination in datagridview in winform
- Refresh DataGridView when updating data source
- In C# Winforms is there a way to put dotted border around all controls and show grip points upon selection of specific controls at runtime?
- CRUD Operations using DataGridView, DataTable and DataAdapter – Cannot add new row to DataGridView
- How to change the color of winform DataGridview header?
- C#: multiline text in DataGridView control
- DataGridView keydown event not working in C#
- DataGridView Using SortableBindingList
- How to programmatically set cell value in DataGridView?
- Datagridview: How to set a cell in editing mode?
- Conditional DataGridView Formatting
- How to prevent DataGridView from flickering when scrolling horizontally?
- How do you automatically resize columns in a DataGridView control AND allow the user to resize the columns on that same grid?
- how to sort string as number in datagridview in winforms
- Create RDLC report dynamically at run-time from a DataGridView
- Updating UI in C# using Timer
- Populating a DataGridView with Text and ProgressBars
- DataGridView bound to BindingList does not refresh when value changed
- How to refresh datagridview when closing child form?
- DataGridView Image for Button Column
- Properly disposing of, and removing references to UserControls, to avoid memory leak
- How to move focus on next cell in a datagridview on Enter key press event
- Override Paste Into TextBox
- Is it possible to switch rows and columns in a datagridview?
- DataGridView changing cell background color
- Sort dataGridView columns in C# ? (Windows Form)