private int IndexOf (DataRow dr) { for (int i=0; i < rowCache.Length; i++) if (dr.Equals (rowCache [i].Row)) return i; return -1; }