BExIS.Ddm.Model.SearchResult.GetRowByID C# (CSharp) Method

GetRowByID() public method

public GetRowByID ( int id ) : Row
id int
return Row
        public Row GetRowByID(int id)
        {
            int headerId = GetIndexOfID();
            foreach (Row r in Rows)
            {
                if (r.Values.ToList().ElementAt(headerId).Equals(id)) return r;
            }

            return null;
        }