private bool MatchRow(int rowInd, IEnumerable <int> columnIndices, bool matchCase, bool matchWholeWord, string searchString, out int[] matchingCols) { List <int> matchingCols1 = new List <int>(); foreach (int columnIndex in columnIndices) { object e = tableModel.GetEntry(rowInd, columnIndex); if (e == null) { continue; } string val = e.ToString(); if (!matchCase) { val = val.ToLower(); } if (MatchCell(val, matchWholeWord, searchString)) { matchingCols1.Add(columnIndex); } } matchingCols = matchingCols1.Count > 0 ? matchingCols1.ToArray() : null; return(matchingCols1.Count > 0); }
public object GetEntry(int row, int column) { return(baseModel.GetEntry(rows[row], columns == null ? column : columns[column])); }
public object GetEntry(int row, int column) { return(baseModel.GetEntry(rows[row], columns?[column] ?? column)); }