public DatabaseRow FindRow(string field, string value) { for (int r = 0; r < RowCount; ++r) { DatabaseRow dr = GetRow(r); if (dr.ContainsField(field)) { if (dr[field] == value) { return(dr); } } } return(null); }