datagridview filter code example
Example: c# datagridview filter
DataTable dt = new DataTable();
DataView dv = new DataView(dt);
// Filter by an expression. Filter all rows where column 'Col' have values greater or equal than 3
dv.RowFilter = "Col < 3";
dataGridView1.DataSource = dv;