dtBoundDataSource is set and bound to the datagridview above private void UnselectFilteredRows() { if(dtBoundDataSource != null && dtBoundDataSource.Rows.Count > 0) { var checkedRows = from cRow in dtBoundDataSource.AsEnumerable() where cRow.Field<bool>(checkedColumnName) == true select cRow; foreach (var row in checkedRows) { if(row) //this is where i need to check if the row is visible or hidden row.SetField(checkedColumnName, false); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)