یکی از بهترین راه برای جستجو در DatagridView، استفاده از دستور foreach هست، مثل این :
//define a new Datatable Object
DataTable dt = new DataTable();
//Copy Structure of Table to New DataTable Object (Schema)
dt = this.ds_ordres1.Orders.Clone();
foreach (DataGridViewRow _gridViewRow in this.dataGridView1.Rows)
{
if (_gridViewRow.Cells[1].Value != null && _gridViewRow.Cells[1].Value.ToString() == "VINET")
dt.ImportRow(this.ds_ordres1.Orders.Rows[_gridViewRow.Index]);
}
//Change DatagridView's DataSource to New DataTable Object
this.dataGridView1.DataSource = dt;