private bool IsVisibleRow(DataGridViewRow row) { //try //{ Seaker.Set(numberColumn, comboBox.SelectedItem.ToString()); grid.CurrentCell = null; bool temp = false; foreach (int item in Seaker.Get().Keys) { string str = Seaker.Get()[item]; if (str == "Все") { temp = true; } else { if (row.Cells[item].Value.ToString() == str) { temp = true; } else { temp = false; return(false); } } } return(temp); //} //catch { return true; } }
public AdvanceFilter(Dictionary <ComboBox, int> dic, DataGridView grid) { this.grid = grid; comboNumber = new Dictionary <Filter, int>(); foreach (ComboBox comboBox in dic.Keys) { comboNumber[new Filter(comboBox, dic[comboBox], grid)] = dic[comboBox]; Seaker.Set(dic[comboBox], "Все"); } }