In general you can set the row as invisible by setting the Visible property to true. However, you may need to suspend the binding while setting the property. Consider the following, replace the
myDataTable
with the actual object you use as the data source.
BindingContext[myDataTable].SuspendBinding();
foreach (DataGridViewRow row in this.productionDGV.Rows) {
if (row.Cells[4].Value.ToString() != Access.Text) {
row.Visible = false;
}
}
BindingContext[myDataTable].ResumeBinding();